public class ContainerType<T extends Container> extends ForgeRegistryEntry<ContainerType<?>> implements IForgeContainerType<T>
Modifier and Type | Class and Description |
---|---|
static interface |
ContainerType.IFactory<T extends Container> |
delegate
Constructor and Description |
---|
ContainerType(ContainerType.IFactory<T> factory) |
Modifier and Type | Method and Description |
---|---|
T |
create(int windowId,
PlayerInventory player) |
T |
create(int windowId,
PlayerInventory playerInv,
PacketBuffer extraData) |
private static <T extends Container> |
register(java.lang.String key,
ContainerType.IFactory<T> factory) |
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
create
public static final ContainerType<ChestContainer> GENERIC_9X1
public static final ContainerType<ChestContainer> GENERIC_9X2
public static final ContainerType<ChestContainer> GENERIC_9X3
public static final ContainerType<ChestContainer> GENERIC_9X4
public static final ContainerType<ChestContainer> GENERIC_9X5
public static final ContainerType<ChestContainer> GENERIC_9X6
public static final ContainerType<DispenserContainer> GENERIC_3X3
public static final ContainerType<RepairContainer> ANVIL
public static final ContainerType<BeaconContainer> BEACON
public static final ContainerType<BlastFurnaceContainer> BLAST_FURNACE
public static final ContainerType<BrewingStandContainer> BREWING_STAND
public static final ContainerType<WorkbenchContainer> CRAFTING
public static final ContainerType<EnchantmentContainer> ENCHANTMENT
public static final ContainerType<FurnaceContainer> FURNACE
public static final ContainerType<GrindstoneContainer> GRINDSTONE
public static final ContainerType<HopperContainer> HOPPER
public static final ContainerType<LecternContainer> LECTERN
public static final ContainerType<LoomContainer> LOOM
public static final ContainerType<MerchantContainer> MERCHANT
public static final ContainerType<ShulkerBoxContainer> SHULKER_BOX
public static final ContainerType<SmokerContainer> SMOKER
public static final ContainerType<CartographyContainer> field_226625_v_
public static final ContainerType<StonecutterContainer> STONECUTTER
private final ContainerType.IFactory<T extends Container> factory
public ContainerType(ContainerType.IFactory<T> factory)
private static <T extends Container> ContainerType<T> register(java.lang.String key, ContainerType.IFactory<T> factory)
public T create(int windowId, PlayerInventory player)
public T create(int windowId, PlayerInventory playerInv, PacketBuffer extraData)
create
in interface IForgeContainerType<T extends Container>