Class ItemUseState
java.lang.Object
com.viaversion.viafabricplus.bedrock.input.ItemUseState
A physical hold retains its air or placement route until release.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadmitAirUse(long now, net.minecraft.world.InteractionHand hand, boolean food, boolean blockItem, boolean canConsume) voidattemptedBlock(long now, boolean success) booleanbooleancanAttempt(long now) voidvoidclear()booleanframeReady(long now, boolean placementLine) net.minecraft.world.phys.HitResult.TypehitType(long now, net.minecraft.world.phys.HitResult.Type target, net.minecraft.world.InteractionHand hand) booleanplacedBlock(long now, boolean hasRemainder) voidrelease()booleanvoid
-
Constructor Details
-
ItemUseState
public ItemUseState()
-
-
Method Details
-
canAttempt
public boolean canAttempt(long now) -
admitAirUse
public boolean admitAirUse(long now, net.minecraft.world.InteractionHand hand, boolean food, boolean blockItem, boolean canConsume) -
placedBlock
public boolean placedBlock(long now, boolean hasRemainder) -
hitType
public net.minecraft.world.phys.HitResult.Type hitType(long now, net.minecraft.world.phys.HitResult.Type target, net.minecraft.world.InteractionHand hand) -
retainBlockUse
public void retainBlockUse() -
attemptedBlock
public void attemptedBlock(long now, boolean success) -
blockActive
public boolean blockActive() -
repeatsFromFrames
public boolean repeatsFromFrames() -
frameReady
public boolean frameReady(long now, boolean placementLine) -
cancelPlacement
public void cancelPlacement() -
release
public void release() -
clear
public void clear()
-