Class Target.Air

java.lang.Object
dev.myriadclient.api.build.Target.Air
All Implemented Interfaces:
Target
Enclosing interface:
Target

public static final class Target.Air extends Object implements Target
What Target.air() returns: done when the position is air or a fluid.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface Target

    Target.Air, Target.Exact, Target.Orientation, Target.Solid
  • Constructor Summary

    Constructors
    Constructor
    Description
    Air()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    A short description for debugging and plan overlays.
    boolean
    matches(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
    Whether state at pos already is what this target wants.
    int
    preference(net.minecraft.world.item.ItemStack stack)
    How good stack is for filling this target: -1 if it can't, otherwise lower is better (0 = first choice).
    boolean
    Whether this target wants the position empty.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface Target

    orientedState
  • Constructor Details

    • Air

      public Air()
  • Method Details

    • matches

      public boolean matches(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state)
      Description copied from interface: Target
      Whether state at pos already is what this target wants.
      Specified by:
      matches in interface Target
    • wantsAir

      public boolean wantsAir()
      Description copied from interface: Target
      Whether this target wants the position empty.
      Specified by:
      wantsAir in interface Target
    • preference

      public int preference(net.minecraft.world.item.ItemStack stack)
      Description copied from interface: Target
      How good stack is for filling this target: -1 if it can't, otherwise lower is better (0 = first choice). Never called for Target.air().
      Specified by:
      preference in interface Target
    • describe

      public String describe()
      Description copied from interface: Target
      A short description for debugging and plan overlays.
      Specified by:
      describe in interface Target