Class ClientboundLevelEventPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundLevelEventPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundLevelEventPacket(@NonNull LevelEvent event, int x, int y, int z, @NonNull LevelEventData data) ClientboundLevelEventPacket(@NonNull LevelEvent event, int x, int y, int z, @NonNull LevelEventData data, boolean broadcast) ClientboundLevelEventPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull LevelEventDatagetData()@NonNull LevelEventgetEvent()intgetX()intgetY()intgetZ()inthashCode()booleanvoidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundLevelEventPacketwithBroadcast(boolean broadcast) @NonNull ClientboundLevelEventPacketwithData(@NonNull LevelEventData data) @NonNull ClientboundLevelEventPacketwithEvent(@NonNull LevelEvent event) @NonNull ClientboundLevelEventPacketwithX(int x) @NonNull ClientboundLevelEventPacketwithY(int y) @NonNull ClientboundLevelEventPacketwithZ(int z) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.geysermc.mcprotocollib.network.packet.Packet
isPriority
-
Constructor Details
-
ClientboundLevelEventPacket
public ClientboundLevelEventPacket(@NonNull @NonNull LevelEvent event, int x, int y, int z, @NonNull @NonNull LevelEventData data) -
ClientboundLevelEventPacket
-
ClientboundLevelEventPacket
public ClientboundLevelEventPacket(@NonNull @NonNull LevelEvent event, int x, int y, int z, @NonNull @NonNull LevelEventData data, boolean broadcast)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getEvent
-
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
getData
-
isBroadcast
public boolean isBroadcast() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withEvent
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withX
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withY
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withZ
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withData
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBroadcast
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-