Class PlayerEvents
java.lang.Object
net.ixdarklord.coolcatcore.api.event.v2.common.PlayerEvents
Players joining and leaving the server, their tick, respawning and changing dimension, picking items up, and crafting
and smelting.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA player went from one dimension to another, by portal or teleport; they are already in the new one.static interfaceThe game made a new player object for a player who died or came back from the End, and is copying them over: the place to carry over what the game doesn't (attachments kept through death already are).static interfaceA player took what they crafted out of a crafting result slot (the crafting table's, their inventory's, or another menu's built the same way), on the server.static interfaceAfter a player ticks, on both sides; checkplayer.level().isClientSide().static interfaceA player finished logging in and is in the level.static interfaceA player is logging out.static interfaceA player is about to pick up an item from the ground: it may be picked up, and they have room.static interfaceA player is back in the world after dying or leaving the End (the new player object).static interfaceA player took what was smelted out of a furnace, smoker or blast furnace, on the server.static interfaceBefore a player ticks, on both sides; checkplayer.level().isClientSide().static interfaceA player is about to go to another dimension: by portal, by command, by another mod's teleporter, anything that moves them across. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EventInvoker<PlayerEvents.ChangeDimension>static final EventInvoker<PlayerEvents.Clone>static final EventInvoker<PlayerEvents.Crafted>static final EventInvoker<PlayerEvents.EndTick>static final EventInvoker<PlayerEvents.Join>static final EventInvoker<PlayerEvents.Leave>static final EventInvoker<PlayerEvents.PickupItem>static final EventInvoker<PlayerEvents.Respawn>static final EventInvoker<PlayerEvents.Smelted>static final EventInvoker<PlayerEvents.StartTick>static final EventInvoker<PlayerEvents.TravelToDimension> -
Method Summary
-
Field Details
-
JOIN
-
LEAVE
-
START_TICK
-
END_TICK
-
CLONE
-
RESPAWN
-
CHANGE_DIMENSION
-
TRAVEL_TO_DIMENSION
-
PICKUP_ITEM
-
CRAFTED
-
SMELTED
-