public static class PlayerInteractEvent.EntityInteractSpecific extends PlayerInteractEvent
Entity.applyPlayerInteraction(net.minecraft.entity.player.EntityPlayer, net.minecraft.util.math.Vec3d, net.minecraft.util.EnumHand)
is called.
If Entity.applyPlayerInteraction(net.minecraft.entity.player.EntityPlayer, net.minecraft.util.math.Vec3d, 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.LeftClickEmpty, PlayerInteractEvent.RightClickBlock, PlayerInteractEvent.RightClickEmpty, PlayerInteractEvent.RightClickItem
PlayerEvent.BreakSpeed, PlayerEvent.Clone, PlayerEvent.HarvestCheck, PlayerEvent.LoadFromFile, PlayerEvent.NameFormat, PlayerEvent.SaveToFile, PlayerEvent.StartTracking, PlayerEvent.StopTracking, PlayerEvent.Visibility
LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing
Event.HasResult, Event.Result
Constructor and Description |
---|
EntityInteractSpecific(EntityPlayer player,
EnumHand hand,
Entity target,
Vec3d localPos) |
Modifier and Type | Method and Description |
---|---|
Vec3d |
getLocalPos()
Returns the local interaction position.
|
Entity |
getTarget() |
getFace, getHand, getItemStack, getPos, getSide, getWorld
getEntityPlayer
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public EntityInteractSpecific(EntityPlayer player, EnumHand hand, Entity target, Vec3d localPos)
public Vec3d getLocalPos()
public Entity getTarget()