Package net.minecraft.tileentity
Class TileEntityType.Builder<T extends TileEntity>
- java.lang.Object
-
- net.minecraft.tileentity.TileEntityType.Builder<T>
-
- Enclosing class:
- TileEntityType<T extends TileEntity>
public static final class TileEntityType.Builder<T extends TileEntity> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Supplier<? extends T>
factory
private java.util.Set<Block>
validBlocks
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TileEntityType<T>
build(com.mojang.datafixers.types.Type<?> p_206865_1_)
static <T extends TileEntity>
TileEntityType.Builder<T>of(java.util.function.Supplier<? extends T> p_223042_0_, Block... p_223042_1_)
-
-
-
Field Detail
-
factory
private final java.util.function.Supplier<? extends T extends TileEntity> factory
-
validBlocks
private final java.util.Set<Block> validBlocks
-
-
Method Detail
-
of
public static <T extends TileEntity> TileEntityType.Builder<T> of(java.util.function.Supplier<? extends T> p_223042_0_, Block... p_223042_1_)
-
build
public TileEntityType<T> build(com.mojang.datafixers.types.Type<?> p_206865_1_)
-
-