Further modernise and remove legacy item classes

This commit is contained in:
Matthew Miller
2018-06-17 17:50:04 +10:00
parent c43109bde5
commit e2608bc0c9
35 changed files with 392 additions and 1045 deletions

View File

@ -97,8 +97,7 @@ public class BundledItemData {
* @param id the ID
* @return the entry, or null
*/
@Nullable
private ItemEntry findById(String id) {
@Nullable public ItemEntry findById(String id) {
// If it has no namespace, assume minecraft.
if (!id.contains(":")) {
id = "minecraft:" + id;
@ -158,12 +157,12 @@ public class BundledItemData {
return INSTANCE;
}
private static class ItemEntry {
public static class ItemEntry {
private int legacyId; // -1 for items without legacy IDs.
private short legacyData;
private String id;
private String unlocalizedName;
private String localizedName;
public String localizedName;
private int maxDamage;
private int maxStackSize;
}