Class BedrockItemUse
java.lang.Object
com.viaversion.viafabricplus.bedrock.input.BedrockItemUse
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanallows(net.minecraft.core.BlockPos target, net.minecraft.world.level.block.state.BlockState state) static voidstatic voidbegin(boolean freshPress) static booleanbeginAirUse(net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack item) static voidbeginPrediction(net.minecraft.world.phys.BlockHitResult hit) static net.minecraft.world.phys.BlockHitResultblockHit(net.minecraft.world.phys.BlockHitResult hit, boolean frameRepeat) static net.minecraft.world.InteractionResultblockResult(net.minecraft.world.InteractionResult result, net.minecraft.world.InteractionHand hand) static voidbuildAttempt(net.minecraft.core.BlockPos position, boolean success, boolean atUpperBuildLimit) static booleanstatic net.minecraft.world.phys.HitResult.TypehitType(net.minecraft.world.phys.HitResult.Type target, net.minecraft.world.InteractionHand hand) static voidplaced(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos support, net.minecraft.world.phys.Vec3 hit) static net.minecraft.world.level.block.state.BlockStateplacement(net.minecraft.world.level.block.state.BlockState state) static voidpredicted(boolean success) static voidrefresh()static voidregister()static voidrelease()static booleanstatic voidsendPrediction(int sequence) static boolean
-
Method Details
-
register
public static void register() -
begin
public static void begin(boolean freshPress) -
beginAirUse
public static boolean beginAirUse(net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack item) -
hitType
public static net.minecraft.world.phys.HitResult.Type hitType(net.minecraft.world.phys.HitResult.Type target, net.minecraft.world.InteractionHand hand) -
release
public static void release() -
blockResult
public static net.minecraft.world.InteractionResult blockResult(net.minecraft.world.InteractionResult result, net.minecraft.world.InteractionHand hand) -
attempted
public static void attempted() -
repeatsFromFrames
public static boolean repeatsFromFrames() -
frameReady
public static boolean frameReady() -
refresh
public static void refresh() -
suppressInteraction
public static boolean suppressInteraction() -
allows
public static boolean allows(net.minecraft.core.BlockPos target, net.minecraft.world.level.block.state.BlockState state) -
blockHit
public static net.minecraft.world.phys.BlockHitResult blockHit(net.minecraft.world.phys.BlockHitResult hit, boolean frameRepeat) -
buildAttempt
public static void buildAttempt(net.minecraft.core.BlockPos position, boolean success, boolean atUpperBuildLimit) -
placed
public static void placed(net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos support, net.minecraft.world.phys.Vec3 hit) -
beginPrediction
public static void beginPrediction(net.minecraft.world.phys.BlockHitResult hit) -
predicted
public static void predicted(boolean success) -
sendPrediction
public static void sendPrediction(int sequence) -
placement
public static net.minecraft.world.level.block.state.BlockState placement(net.minecraft.world.level.block.state.BlockState state)
-