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, @NonNull org.cloudburstmc.math.vector.Vector3i position, @NonNull LevelEventData data) ClientboundLevelEventPacket(@NonNull LevelEvent event, @NonNull org.cloudburstmc.math.vector.Vector3i position, @NonNull LevelEventData data, boolean broadcast) ClientboundLevelEventPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull LevelEventDatagetData()@NonNull LevelEventgetEvent()@NonNull org.cloudburstmc.math.vector.Vector3iinthashCode()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 ClientboundLevelEventPacketwithPosition(@NonNull org.cloudburstmc.math.vector.Vector3i position) 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, @NonNull @NonNull org.cloudburstmc.math.vector.Vector3i position, @NonNull @NonNull LevelEventData data) -
ClientboundLevelEventPacket
-
ClientboundLevelEventPacket
public ClientboundLevelEventPacket(@NonNull @NonNull LevelEvent event, @NonNull @NonNull org.cloudburstmc.math.vector.Vector3i position, @NonNull @NonNull LevelEventData data, boolean broadcast)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getEvent
-
getPosition
@NonNull public @NonNull org.cloudburstmc.math.vector.Vector3i getPosition() -
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).
-
withPosition
public @NonNull ClientboundLevelEventPacket withPosition(@NonNull @NonNull org.cloudburstmc.math.vector.Vector3i position) - 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).
-