Class Target.Air
java.lang.Object
dev.myriadclient.api.build.Target.Air
- All Implemented Interfaces:
Target
- Enclosing interface:
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 -
Method Summary
Modifier and TypeMethodDescriptiondescribe()A short description for debugging and plan overlays.booleanmatches(net.minecraft.world.level.BlockGetter level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) Whetherstateatposalready is what this target wants.intpreference(net.minecraft.world.item.ItemStack stack) How goodstackis for filling this target: -1 if it can't, otherwise lower is better (0 = first choice).booleanwantsAir()Whether this target wants the position empty.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Target
orientedState
-
Constructor Details
-
Air
public Air()
-
-
Method Details
-
matches
-
wantsAir
-
preference
public int preference(net.minecraft.world.item.ItemStack stack) Description copied from interface:TargetHow goodstackis for filling this target: -1 if it can't, otherwise lower is better (0 = first choice). Never called forTarget.air().- Specified by:
preferencein interfaceTarget
-
describe
-