WIP merge (i'll finish this later)

This commit is contained in:
Jesse Boyd
2019-04-05 01:24:47 +11:00
parent 1beea3cd22
commit 33f5322fda
25 changed files with 845 additions and 530 deletions

View File

@ -37,7 +37,7 @@ public class ItemType {
private int internalId;
private BaseItem defaultState;
public ItemType(String id) {
protected ItemType(String id) {
// If it has no namespace, assume minecraft.
if (!id.contains(":")) {
id = "minecraft:" + id;

View File

@ -873,7 +873,7 @@ public final class ItemTypes {
}
public static final @Nullable ItemType get(String id) {
return ItemType.REGISTRY.get(id);
}
public static final @Nullable ItemType get(BlockType type) {