net.minecraft.world.gen.placementmodifier

public record SurfaceThresholdFilterPlacementModifier

implements AbstractConditionalPlacementModifier

net.minecraft.world.level.levelgen.placement.SurfaceRelativeThresholdFilter
net.minecraft.class_6584
net.minecraft.world.gen.placementmodifier.SurfaceThresholdFilterPlacementModifier

Field summary

Modifier and TypeField
private final Heightmap$Type
heightmap
comp_1_1255
heightmap
private final int
minInclusive
comp_1_1257
min
private final int
maxInclusive
comp_1_1256
max
public static final com.mojang.serialization.MapCodec<SurfaceThresholdFilterPlacementModifier>
CODEC
field_34721
MODIFIER_CODEC

Constructor summary

ModifierConstructor
public (Heightmap$Type heightmap, int min, int max)

Method summary

Modifier and TypeMethod
public static SurfaceThresholdFilterPlacementModifier
of(Heightmap$Types heightmap, int minInclusive, int maxInclusive)
method_39661(class_2902$class_2903 arg0, int arg1, int arg2)
of(Heightmap$Type heightmap, int min, int max)
public boolean
shouldPlace(PlacementContext context, RandomSource random, BlockPos origin)
method_38918(class_5444 arg0, class_5819 arg1, class_2338 arg2)
shouldPlace(FeaturePlacementContext arg0, Random arg1, BlockPos arg2)
public com.mojang.serialization.MapCodec<SurfaceThresholdFilterPlacementModifier>
codec()
method_1_7562()
getCodec()
public Heightmap$Type
heightmap()
comp_1_1255()
heightmap()
public int
minInclusive()
comp_1_1257()
min()
public int
maxInclusive()
comp_1_1256()
max()
private static com.mojang.datafixers.kinds.App
lambda$static$0(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_38456(com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg0)
method_38456(com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)