Class ClientboundBlockEventPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundBlockEventPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundBlockEventPacket(int x, int y, int z, @NonNull BlockValueType type, @NonNull BlockValue value, int blockId) ClientboundBlockEventPacket(io.netty.buffer.ByteBuf in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanint@NonNull BlockValueTypegetType()@NonNull BlockValuegetValue()intgetX()intgetY()intgetZ()inthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundBlockEventPacketwithBlockId(int blockId) @NonNull ClientboundBlockEventPacketwithType(@NonNull BlockValueType type) @NonNull ClientboundBlockEventPacketwithValue(@NonNull BlockValue value) @NonNull ClientboundBlockEventPacketwithX(int x) @NonNull ClientboundBlockEventPacketwithY(int y) @NonNull ClientboundBlockEventPacketwithZ(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, isTerminal
-
Constructor Details
-
ClientboundBlockEventPacket
public ClientboundBlockEventPacket(io.netty.buffer.ByteBuf in) -
ClientboundBlockEventPacket
public ClientboundBlockEventPacket(int x, int y, int z, @NonNull @NonNull BlockValueType type, @NonNull @NonNull BlockValue value, int blockId)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
getType
-
getValue
-
getBlockId
public int getBlockId() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
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).
-
withType
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withValue
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBlockId
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-