public class EndSpikeFeatureConfig extends Object implements FeatureConfig
Modifier and Type | Field and Description |
---|---|
private BlockPos |
crystalBeamTarget |
private boolean |
crystalInvulnerable |
private List<EndSpikeFeature.Spike> |
spikes |
DEFAULT
Constructor and Description |
---|
EndSpikeFeatureConfig(boolean crystalInvulnerable,
List<EndSpikeFeature.Spike> spikes,
BlockPos crystalBeamTarget) |
Modifier and Type | Method and Description |
---|---|
static <T> EndSpikeFeatureConfig |
deserialize(com.mojang.datafixers.Dynamic<T> dynamic) |
BlockPos |
getPos() |
List<EndSpikeFeature.Spike> |
getSpikes() |
boolean |
isCrystalInvulerable() |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
private final boolean crystalInvulnerable
private final List<EndSpikeFeature.Spike> spikes
public EndSpikeFeatureConfig(boolean crystalInvulnerable, List<EndSpikeFeature.Spike> spikes, @Nullable BlockPos crystalBeamTarget)
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize
in interface FeatureConfig
public static <T> EndSpikeFeatureConfig deserialize(com.mojang.datafixers.Dynamic<T> dynamic)
public boolean isCrystalInvulerable()
public List<EndSpikeFeature.Spike> getSpikes()