net.minecraft.world.gen.placementmodifier

public class SurfaceThresholdFilterPlacementModifier

extends AbstractConditionalPlacementModifier

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

Field summary

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

Constructor summary

ModifierConstructor
private (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)
protected 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 PlacementModifierType<?>
type()
method_39615()
getType()
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)
private static Integer
lambda$static$3(SurfaceRelativeThresholdFilter arg0)
method_38457(class_6584 arg0)
method_38457(SurfaceThresholdFilterPlacementModifier placementModifier)
private static Integer
lambda$static$2(SurfaceRelativeThresholdFilter arg0)
method_38458(class_6584 arg0)
method_38458(SurfaceThresholdFilterPlacementModifier placementModifier)
private static Heightmap$Type
lambda$static$1(SurfaceRelativeThresholdFilter arg0)
method_38459(class_6584 arg0)
method_38459(SurfaceThresholdFilterPlacementModifier placementModifier)