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