Skip to content

WorldNotificationHandler

Package: com.hypixel.hytale.server.core.universe.world

public class WorldNotificationHandler

Handles sending block state change notifications, block particle effects, and block damage updates to players whose chunks are loaded. Validates Y coordinates are within [0, 320).

MethodReturn TypeDescription
updateState(int, int, int, BlockState, BlockState)voidSends block state update to all players with the chunk loaded.
updateState(int, int, int, BlockState, BlockState, Predicate<PlayerRef>)voidSame as above with a player skip predicate.
updateChunk(long)voidMarks a chunk for reload on all connected players.
sendBlockParticle(double, double, double, int, BlockParticleEvent)voidSends a block particle effect to all players with the chunk loaded.
sendBlockParticle(PlayerRef, double, double, double, int, BlockParticleEvent)voidSends a block particle to a specific player.
updateBlockDamage(int, int, int, float, float)voidSends a block damage update to all players.
updateBlockDamage(int, int, int, float, float, Predicate<PlayerRef>)voidSends a block damage update with a player filter.
sendPacketIfChunkLoaded(ToClientPacket, int, int)voidSends a packet to players with the chunk at (x, z) loaded.
sendPacketIfChunkLoaded(ToClientPacket, long)voidSends a packet to players with the chunk index loaded.
getBlockParticlePacket(double, double, double, int, BlockParticleEvent)SpawnBlockParticleSystemCreates a block particle packet.
getBlockDamagePacket(int, int, int, float, float)UpdateBlockDamageCreates a block damage packet.
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.