Class SurfaceRelativeThresholdFilter
java.lang.Object
net.minecraft.world.level.levelgen.placement.PlacementModifier
net.minecraft.world.level.levelgen.placement.PlacementFilter
net.minecraft.world.level.levelgen.placement.SurfaceRelativeThresholdFilter
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SurfaceRelativeThresholdFilter>
private final Heightmap.Types
private final int
private final int
-
Constructor Summary
ModifierConstructorDescriptionprivate
SurfaceRelativeThresholdFilter
(Heightmap.Types p_191925_, int p_191926_, int p_191927_) -
Method Summary
Modifier and TypeMethodDescriptionof
(Heightmap.Types p_191931_, int p_191932_, int p_191933_) protected boolean
shouldPlace
(PlacementContext p_191935_, Random p_191936_, BlockPos p_191937_) type()
Methods inherited from class net.minecraft.world.level.levelgen.placement.PlacementFilter
getPositions
-
Field Details
-
CODEC
-
heightmap
-
minInclusive
private final int minInclusive -
maxInclusive
private final int maxInclusive
-
-
Constructor Details
-
SurfaceRelativeThresholdFilter
-
-
Method Details
-
of
public static SurfaceRelativeThresholdFilter of(Heightmap.Types p_191931_, int p_191932_, int p_191933_) -
shouldPlace
- Specified by:
shouldPlace
in classPlacementFilter
-
type
- Specified by:
type
in classPlacementModifier
-