Package net.ixdarklord.coolcatcore.api.event.v2.common
package net.ixdarklord.coolcatcore.api.event.v2.common
-
ClassDescription
Attachmentvalues being added, changed and removed on any holder (entity, block entity or item stack), and players starting and stopping to track a holder's data.A value was stored where there was none.A value is about to be added, changed or removed by code on this side (not by a sync from the server).Synced values from the server were applied on this client (after their add, change and remove events).A value was removed (reset); the holder reads the default again.A player starts receiving a holder's synced data (server side): they started seeing the entity or received the block entity's chunk (for holders carrying attachments at that moment), or, for their own attachments, joined, respawned or changed dimension (always).A player stops receiving a holder's data (server side): they stopped seeing the entity, the block entity's chunk was dropped for them, or, for their own data, they left.Blocks broken and placed, on the server.A player is about to break a block (server side); interrupting cancels it.A block was placed: by an entity (usually a player), or with no placer.Server commands.Entities on the server.An entity was added to a server level: spawned, or loaded with its chunk (players too, when they join).Players joining and leaving the server, and their tick.After a player ticks, on both sides; checkplayer.level().isClientSide().A player finished logging in and is in the level.A player is logging out.Before a player ticks, on both sides; checkplayer.level().isClientSide().The server's lifecycle, for dedicated and integrated servers alike.Once the server is ready to tick.Before the levels load.After the server has shut down.When the server begins shutting down, before the levels save.When a player needs the server's datapack contents: once as they log in (joinedis true), and for every player after a datapack reload such as/reload(joinedis false).The server's tick, and each of its levels' ticks.