Class PlayerInteractionManager
java.lang.Object
com.zenith.feature.player.PlayerInteractionManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattackEntity(EntityRaycastResult entity) doubleblockBreakSpeed(Block block) doubleblockBreakSpeed(Block block, ItemStack item) protected booleancontinueDestroyBlock(int x, int y, int z, Direction directionFacing) intintgetEnchantmentLevel(ItemStack item, EnchantmentData enchantmentData) doublegetPlayerDestroySpeed(Block block) booleanhasCorrectToolForDrops(Block block, ItemStack item) protected InteractionResultinteract(Hand hand, EntityRaycastResult ray) protected InteractionResultinteractAt(Hand hand, EntityRaycastResult ray) booleanisDestroying(int x, int y, int z) booleanmatchingTool(ItemStack item, Block block) protected booleanstartDestroyBlock(int x, int y, int z, Direction face) protected voidprotected InteractionResultprotected InteractionResultuseItemOn(Hand hand, BlockRaycastResult ray)
-
Constructor Details
-
PlayerInteractionManager
public PlayerInteractionManager()
-
-
Method Details
-
isDestroying
public boolean isDestroying(int x, int y, int z) -
startDestroyBlock
-
stopDestroyBlock
protected void stopDestroyBlock() -
continueDestroyBlock
-
getDestroyStage
public int getDestroyStage() -
blockBreakSpeed
-
blockBreakSpeed
-
hasCorrectToolForDrops
-
matchingTool
-
getEnchantmentLevel
-
getPlayerDestroySpeed
-
interact
-
interactAt
-
useItemOn
-
useItem
-
attackEntity
-