public class BlockWithContextConfig extends java.lang.Object implements IFeatureConfig
Modifier and Type | Field and Description |
---|---|
java.util.List<BlockState> |
placeIn |
java.util.List<BlockState> |
placeOn |
java.util.List<BlockState> |
placeUnder |
BlockState |
toPlace |
NO_FEATURE_CONFIG
Constructor and Description |
---|
BlockWithContextConfig(BlockState state,
BlockState[] placeOn,
BlockState[] placeIn,
BlockState[] placeUnder) |
BlockWithContextConfig(BlockState toPlace,
java.util.List<BlockState> placeOn,
java.util.List<BlockState> placeIn,
java.util.List<BlockState> placeUnder) |
Modifier and Type | Method and Description |
---|---|
static <T> BlockWithContextConfig |
deserialize(com.mojang.datafixers.Dynamic<T> p_214663_0_) |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
public final BlockState toPlace
public final java.util.List<BlockState> placeOn
public final java.util.List<BlockState> placeIn
public final java.util.List<BlockState> placeUnder
public BlockWithContextConfig(BlockState toPlace, java.util.List<BlockState> placeOn, java.util.List<BlockState> placeIn, java.util.List<BlockState> placeUnder)
public BlockWithContextConfig(BlockState state, BlockState[] placeOn, BlockState[] placeIn, BlockState[] placeUnder)
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize
in interface IFeatureConfig
public static <T> BlockWithContextConfig deserialize(com.mojang.datafixers.Dynamic<T> p_214663_0_)