public class EndSpikeFeatureConfig extends java.lang.Object implements IFeatureConfig
Modifier and Type | Field and Description |
---|---|
private BlockPos |
crystalBeamTarget |
private boolean |
crystalInvulnerable |
private java.util.List<EndSpikeFeature.EndSpike> |
spikes |
NO_FEATURE_CONFIG
Constructor and Description |
---|
EndSpikeFeatureConfig(boolean crystalInvulnerable,
java.util.List<EndSpikeFeature.EndSpike> spikes,
BlockPos crystalBeamTarget) |
Modifier and Type | Method and Description |
---|---|
static <T> EndSpikeFeatureConfig |
deserialize(com.mojang.datafixers.Dynamic<T> p_214673_0_) |
BlockPos |
getCrystalBeamTarget() |
java.util.List<EndSpikeFeature.EndSpike> |
getSpikes() |
boolean |
isCrystalInvulnerable() |
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
private final boolean crystalInvulnerable
private final java.util.List<EndSpikeFeature.EndSpike> spikes
@Nullable private final BlockPos crystalBeamTarget
public EndSpikeFeatureConfig(boolean crystalInvulnerable, java.util.List<EndSpikeFeature.EndSpike> spikes, @Nullable BlockPos crystalBeamTarget)
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> ops)
serialize
in interface IFeatureConfig
public static <T> EndSpikeFeatureConfig deserialize(com.mojang.datafixers.Dynamic<T> p_214673_0_)
public boolean isCrystalInvulnerable()
public java.util.List<EndSpikeFeature.EndSpike> getSpikes()
@Nullable public BlockPos getCrystalBeamTarget()