public class EndGatewayFeatureConfig extends Object implements FeatureConfig
Modifier and Type | Field and Description |
---|---|
private boolean |
exact |
private Optional<BlockPos> |
exitPos |
DEFAULT
Modifier | Constructor and Description |
---|---|
private |
EndGatewayFeatureConfig(Optional<BlockPos> exitPos,
boolean exact) |
Modifier and Type | Method and Description |
---|---|
static EndGatewayFeatureConfig |
createConfig() |
static EndGatewayFeatureConfig |
createConfig(BlockPos exitPortalPosition,
boolean exitsAtSpawn) |
static <T> EndGatewayFeatureConfig |
deserialize(com.mojang.datafixers.Dynamic<T> dynamic) |
Optional<BlockPos> |
getExitPos() |
boolean |
isExact() |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
public static EndGatewayFeatureConfig createConfig(BlockPos exitPortalPosition, boolean exitsAtSpawn)
public static EndGatewayFeatureConfig createConfig()
public boolean isExact()
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize
in interface FeatureConfig
public static <T> EndGatewayFeatureConfig deserialize(com.mojang.datafixers.Dynamic<T> dynamic)