Class PlayerMouseButtonEvent
java.lang.Object
com.hypixel.hytale.server.core.event.events.player.PlayerEvent<Void>
com.hypixel.hytale.server.core.event.events.player.PlayerMouseButtonEvent
- All Implemented Interfaces:
IBaseEvent<Void>,ICancellable,IEvent<Void>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPlayerMouseButtonEvent(Ref<EntityStore> ref, Player player, PlayerRef playerRefComponent, long clientUseTime, Item itemInHand, Vector3i targetBlock, Entity targetEntity, Vector2f screenPoint, MouseButtonEvent mouseButton) -
Method Summary
Methods inherited from class com.hypixel.hytale.server.core.event.events.player.PlayerEvent
getPlayer, getPlayerRef
-
Field Details
-
playerRef
-
clientUseTime
private final long clientUseTime -
itemInHand
-
targetBlock
-
targetEntity
-
screenPoint
-
mouseButton
-
cancelled
private boolean cancelled
-
-
Constructor Details
-
PlayerMouseButtonEvent
public PlayerMouseButtonEvent(@Nonnull Ref<EntityStore> ref, @Nonnull Player player, @Nonnull PlayerRef playerRefComponent, long clientUseTime, @Nonnull Item itemInHand, @Nonnull Vector3i targetBlock, @Nonnull Entity targetEntity, @Nonnull Vector2f screenPoint, @Nonnull MouseButtonEvent mouseButton)
-
-
Method Details
-
getPlayerRefComponent
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceICancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceICancellable
-
getClientUseTime
public long getClientUseTime() -
getItemInHand
-
getTargetBlock
-
getTargetEntity
-
getScreenPoint
-
getMouseButton
-
toString
- Overrides:
toStringin classPlayerEvent<Void>
-