Class PlayerInteractionManager

java.lang.Object
com.zenith.feature.player.PlayerInteractionManager

public class PlayerInteractionManager extends Object
  • Constructor Details

    • PlayerInteractionManager

      public PlayerInteractionManager()
  • Method Details

    • isDestroying

      public boolean isDestroying(int x, int y, int z)
    • startDestroyBlock

      protected boolean startDestroyBlock(int x, int y, int z, Direction face)
    • stopDestroyBlock

      protected void stopDestroyBlock()
    • continueDestroyBlock

      protected boolean continueDestroyBlock(int x, int y, int z, Direction directionFacing)
    • getDestroyStage

      public int getDestroyStage()
    • blockBreakSpeed

      public double blockBreakSpeed(Block block)
    • blockBreakSpeed

      public double blockBreakSpeed(Block block, ItemStack item)
    • hasCorrectToolForDrops

      public boolean hasCorrectToolForDrops(Block block, ItemStack item)
    • matchingTool

      public boolean matchingTool(ItemStack item, Block block)
    • getEnchantmentLevel

      public int getEnchantmentLevel(ItemStack item, EnchantmentData enchantmentData)
    • getPlayerDestroySpeed

      public double getPlayerDestroySpeed(Block block)
    • interact

      protected InteractionResult interact(Hand hand, EntityRaycastResult ray)
    • interactAt

      protected InteractionResult interactAt(Hand hand, EntityRaycastResult ray)
    • useItemOn

      protected InteractionResult useItemOn(Hand hand, BlockRaycastResult ray)
    • useItem

      protected InteractionResult useItem(Hand hand)
    • attackEntity

      protected void attackEntity(EntityRaycastResult entity)
    • releaseUsingItem

      protected void releaseUsingItem()
    • getDestroyBlockPosX

      public int getDestroyBlockPosX()
    • getDestroyBlockPosY

      public int getDestroyBlockPosY()
    • getDestroyBlockPosZ

      public int getDestroyBlockPosZ()
    • getDestroyingItem

      public @Nullable ItemStack getDestroyingItem()
    • getDestroyProgress

      public double getDestroyProgress()
    • getDestroyTicks

      public double getDestroyTicks()
    • getDestroyDelay

      public int getDestroyDelay()
    • getDestroyDelayInterval

      public int getDestroyDelayInterval()
    • isDestroying

      public boolean isDestroying()