public static final class TileEntityType.Builder<T extends TileEntity>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Set<Block> |
blocks |
private java.util.function.Supplier<? extends T> |
factory |
Modifier | Constructor and Description |
---|---|
private |
Builder(java.util.function.Supplier<? extends T> factoryIn,
java.util.Set<Block> validBlocks) |
Modifier and Type | Method and Description |
---|---|
TileEntityType<T> |
build(com.mojang.datafixers.types.Type<?> datafixerType) |
static <T extends TileEntity> |
create(java.util.function.Supplier<? extends T> factoryIn,
Block... validBlocks) |
private final java.util.function.Supplier<? extends T extends TileEntity> factory
private final java.util.Set<Block> blocks
public static <T extends TileEntity> TileEntityType.Builder<T> create(java.util.function.Supplier<? extends T> factoryIn, Block... validBlocks)
public TileEntityType<T> build(com.mojang.datafixers.types.Type<?> datafixerType)