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

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<InvertPlacementFilter>
     
    static final net.minecraft.world.level.levelgen.placement.PlacementModifierType<InvertPlacementFilter>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    InvertPlacementFilter(net.minecraft.world.level.levelgen.placement.PlacementFilter filter)
    Creates a new InvertPlacementFilter.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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<?>
     

    Methods inherited from class net.minecraft.world.level.levelgen.placement.PlacementFilter

    getPositions

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<InvertPlacementFilter> 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 new InvertPlacementFilter.
  • Method Details

    • type

      @Nonnull public net.minecraft.world.level.levelgen.placement.PlacementModifierType<?> type()
      Specified by:
      type in class net.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 class net.minecraft.world.level.levelgen.placement.PlacementFilter