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, int rawType, int rawValue, int blockId) ClientboundBlockEventPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintintintgetType()getValue()intgetX()intgetY()intgetZ()inthashCode()voidserialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper) @NonNull StringtoString()@NonNull ClientboundBlockEventPacketwithBlockId(int blockId) @NonNull ClientboundBlockEventPacketwithRawType(int rawType) @NonNull ClientboundBlockEventPacketwithRawValue(int rawValue) @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
-
ClientboundBlockEventPacket
public ClientboundBlockEventPacket(int x, int y, int z, int rawType, int rawValue, int blockId)
-
-
Method Details
-
serialize
- Specified by:
serializein interfaceMinecraftPacket
-
getType
-
getValue
-
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ() -
getRawType
public int getRawType() -
getRawValue
public int getRawValue() -
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).
-
withRawType
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withRawValue
- 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).
-