Class ClientboundAddTransientBlockPacket
java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundAddTransientBlockPacket
- All Implemented Interfaces:
Packet,MinecraftPacket
-
Constructor Summary
ConstructorsConstructorDescriptionClientboundAddTransientBlockPacket(io.netty.buffer.ByteBuf in) ClientboundAddTransientBlockPacket(org.cloudburstmc.math.vector.Vector3i position, int block) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanintgetBlock()org.cloudburstmc.math.vector.Vector3iinthashCode()voidserialize(io.netty.buffer.ByteBuf out) @NonNull StringtoString()@NonNull ClientboundAddTransientBlockPacketwithBlock(int block) @NonNull ClientboundAddTransientBlockPacketwithPosition(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
isTerminal, shouldRunOnGameThread
-
Constructor Details
-
ClientboundAddTransientBlockPacket
public ClientboundAddTransientBlockPacket(io.netty.buffer.ByteBuf in) -
ClientboundAddTransientBlockPacket
public ClientboundAddTransientBlockPacket(org.cloudburstmc.math.vector.Vector3i position, int block)
-
-
Method Details
-
serialize
public void serialize(io.netty.buffer.ByteBuf out) - Specified by:
serializein interfaceMinecraftPacket
-
getPosition
public org.cloudburstmc.math.vector.Vector3i getPosition() -
getBlock
public int getBlock() -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
withPosition
public @NonNull ClientboundAddTransientBlockPacket withPosition(org.cloudburstmc.math.vector.Vector3i position) - Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withBlock
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-