registry changes

This commit is contained in:
kashike
2018-07-05 01:48:37 -07:00
committed by Matthew Miller
parent a48c319e7e
commit d33e2e98aa
25 changed files with 1496 additions and 1528 deletions

View File

@ -38,7 +38,7 @@ public class BundledBlockRegistry implements BlockRegistry {
@Nullable
@Override
public BlockState createFromId(String id) {
return BlockTypes.getBlockType(id).getDefaultState();
return BlockTypes.get(id).getDefaultState();
}
@Nullable

View File

@ -33,6 +33,6 @@ public class BundledItemRegistry implements ItemRegistry {
@Nullable
@Override
public BaseItem createFromId(String id) {
return new BaseItem(ItemTypes.getItemType(id));
return new BaseItem(ItemTypes.get(id));
}
}

View File

@ -93,7 +93,7 @@ public class LegacyMapper {
for (Map.Entry<String, String> itemEntry : dataFile.items.entrySet()) {
try {
itemMap.put(itemEntry.getKey(), ItemTypes.getItemType(itemEntry.getValue()));
itemMap.put(itemEntry.getKey(), ItemTypes.get(itemEntry.getValue()));
} catch (Exception e) {
log.warning("Unknown item: " + itemEntry.getValue());
}