Class BedrockItemUse

java.lang.Object
com.viaversion.viafabricplus.bedrock.input.BedrockItemUse

public final class BedrockItemUse extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    allows(net.minecraft.core.BlockPos target, net.minecraft.world.level.block.state.BlockState state)
     
    static void
     
    static void
    begin(boolean freshPress)
     
    static boolean
    beginAirUse(net.minecraft.world.InteractionHand hand, net.minecraft.world.item.ItemStack item)
     
    static void
    beginPrediction(net.minecraft.world.phys.BlockHitResult hit)
     
    static net.minecraft.world.phys.BlockHitResult
    blockHit(net.minecraft.world.phys.BlockHitResult hit, boolean frameRepeat)
     
    static net.minecraft.world.InteractionResult
    blockResult(net.minecraft.world.InteractionResult result, net.minecraft.world.InteractionHand hand)
     
    static void
    buildAttempt(net.minecraft.core.BlockPos position, boolean success, boolean atUpperBuildLimit)
     
    static boolean
     
    static net.minecraft.world.phys.HitResult.Type
    hitType(net.minecraft.world.phys.HitResult.Type target, net.minecraft.world.InteractionHand hand)
     
    static void
    placed(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.BlockState
    placement(net.minecraft.world.level.block.state.BlockState state)
     
    static void
    predicted(boolean success)
     
    static void
     
    static void
     
    static void
     
    static boolean
     
    static void
    sendPrediction(int sequence)
     
    static boolean
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)