public static class PlayerInteractEvent.EntityInteractSpecific extends PlayerInteractEvent
Entity.applyPlayerInteraction(net.minecraft.entity.player.EntityPlayer, net.minecraft.util.math.Vec3d, net.minecraft.item.ItemStack, net.minecraft.util.EnumHand) is called.
If Entity.applyPlayerInteraction(net.minecraft.entity.player.EntityPlayer, net.minecraft.util.math.Vec3d, net.minecraft.item.ItemStack, net.minecraft.util.EnumHand) returns EnumActionResult.SUCCESS, then processing ends.
Otherwise processing will continue to PlayerInteractEvent.EntityInteract
Canceling the event clientside will cause processing to continue to PlayerInteractEvent.EntityInteract,
while canceling serverside will simply do no further processing.PlayerInteractEvent.EntityInteract, PlayerInteractEvent.EntityInteractSpecific, PlayerInteractEvent.LeftClickBlock, PlayerInteractEvent.RightClickBlock, PlayerInteractEvent.RightClickEmpty, PlayerInteractEvent.RightClickItemPlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTrackingLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEventEntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructingEvent.HasResult, Event.Result| Constructor and Description |
|---|
EntityInteractSpecific(EntityPlayer player,
EnumHand hand,
ItemStack stack,
Entity target,
Vec3d localPos) |
| Modifier and Type | Method and Description |
|---|---|
Vec3d |
getLocalPos()
Returns the local interaction position.
|
Entity |
getTarget() |
getFace, getHand, getItemStack, getPos, getSide, getWorldgetEntityPlayergetEntityLivinggetEntitygetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setuppublic EntityInteractSpecific(EntityPlayer player, EnumHand hand, ItemStack stack, Entity target, Vec3d localPos)
public Vec3d getLocalPos()
public Entity getTarget()