public class BlockPlacerType<P extends BlockPlacer> extends Object
Modifier and Type | Field and Description |
---|---|
private com.mojang.serialization.Codec<P> |
codec |
static BlockPlacerType<ColumnPlacer> |
COLUMN_PLACER |
static BlockPlacerType<DoublePlantPlacer> |
DOUBLE_PLANT_PLACER |
static BlockPlacerType<SimpleBlockPlacer> |
SIMPLE_BLOCK_PLACER |
Modifier | Constructor and Description |
---|---|
private |
BlockPlacerType(com.mojang.serialization.Codec<P> codec) |
Modifier and Type | Method and Description |
---|---|
com.mojang.serialization.Codec<P> |
getCodec() |
private static <P extends BlockPlacer> |
register(String id,
com.mojang.serialization.Codec<P> codec) |
public static final BlockPlacerType<SimpleBlockPlacer> SIMPLE_BLOCK_PLACER
public static final BlockPlacerType<DoublePlantPlacer> DOUBLE_PLANT_PLACER
public static final BlockPlacerType<ColumnPlacer> COLUMN_PLACER
private final com.mojang.serialization.Codec<P extends BlockPlacer> codec
private BlockPlacerType(com.mojang.serialization.Codec<P> codec)
private static <P extends BlockPlacer> BlockPlacerType<P> register(String id, com.mojang.serialization.Codec<P> codec)
public com.mojang.serialization.Codec<P> getCodec()