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
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<SurfaceRelativeThresholdFilter> private final Heightmap.Typesprivate final intprivate final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSurfaceRelativeThresholdFilter(Heightmap.Types heightmap, int minInclusive, int maxInclusive) -
Method Summary
Modifier and TypeMethodDescriptionof(Heightmap.Types heightmap, int minInclusive, int maxInclusive) protected booleanshouldPlace(PlacementContext context, RandomSource random, BlockPos pos) 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
private SurfaceRelativeThresholdFilter(Heightmap.Types heightmap, int minInclusive, int maxInclusive)
-
-
Method Details
-
of
public static SurfaceRelativeThresholdFilter of(Heightmap.Types heightmap, int minInclusive, int maxInclusive) -
shouldPlace
- Specified by:
shouldPlacein classPlacementFilter
-
type
- Specified by:
typein classPlacementModifier
-