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) intintintintint@Nullable ItemStackdoubleintdoubleintgetEnchantmentLevel(ItemStack item, EnchantmentData enchantmentData) doublegetPlayerDestroySpeed(Block block) booleanhasCorrectToolForDrops(Block block, ItemStack item) protected InteractionResultinteract(Hand hand, EntityRaycastResult ray) protected InteractionResultinteractAt(Hand hand, EntityRaycastResult ray) booleanbooleanisDestroying(int x, int y, int z) booleanmatchingTool(ItemStack item, Block block) protected voidprotected 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
-
releaseUsingItem
protected void releaseUsingItem() -
getDestroyBlockPosX
public int getDestroyBlockPosX() -
getDestroyBlockPosY
public int getDestroyBlockPosY() -
getDestroyBlockPosZ
public int getDestroyBlockPosZ() -
getDestroyingItem
-
getDestroyProgress
public double getDestroyProgress() -
getDestroyTicks
public double getDestroyTicks() -
getDestroyDelay
public int getDestroyDelay() -
getDestroyDelayInterval
public int getDestroyDelayInterval() -
isDestroying
public boolean isDestroying()
-