Class InvertPlacementFilter
java.lang.Object
net.minecraft.world.level.levelgen.placement.PlacementModifier
net.minecraft.world.level.levelgen.placement.PlacementFilter
org.moddingx.libx.sandbox.placement.InvertPlacementFilter
public class InvertPlacementFilter
extends net.minecraft.world.level.levelgen.placement.PlacementFilter
A
PlacementFilter
for inverting other filters
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<InvertPlacementFilter>
static final net.minecraft.world.level.levelgen.placement.PlacementModifierType<InvertPlacementFilter>
-
Constructor Summary
ConstructorDescriptionInvertPlacementFilter
(net.minecraft.world.level.levelgen.placement.PlacementFilter filter) Creates a newInvertPlacementFilter
. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
shouldPlace
(net.minecraft.world.level.levelgen.placement.PlacementContext context, net.minecraft.util.RandomSource random, net.minecraft.core.BlockPos pos) net.minecraft.world.level.levelgen.placement.PlacementModifierType<?>
type()
Methods inherited from class net.minecraft.world.level.levelgen.placement.PlacementFilter
getPositions
-
Field Details
-
CODEC
-
TYPE
public static final net.minecraft.world.level.levelgen.placement.PlacementModifierType<InvertPlacementFilter> TYPE
-
-
Constructor Details
-
InvertPlacementFilter
public InvertPlacementFilter(net.minecraft.world.level.levelgen.placement.PlacementFilter filter) Creates a newInvertPlacementFilter
.
-
-
Method Details
-
type
- Specified by:
type
in classnet.minecraft.world.level.levelgen.placement.PlacementModifier
-
shouldPlace
protected boolean shouldPlace(@Nonnull net.minecraft.world.level.levelgen.placement.PlacementContext context, @Nonnull net.minecraft.util.RandomSource random, @Nonnull net.minecraft.core.BlockPos pos) - Specified by:
shouldPlace
in classnet.minecraft.world.level.levelgen.placement.PlacementFilter
-