Class ClientboundBlockEntityDataPacket

java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.level.ClientboundBlockEntityDataPacket
All Implemented Interfaces:
Packet, MinecraftPacket

public class ClientboundBlockEntityDataPacket extends Object implements MinecraftPacket
  • Constructor Details

    • ClientboundBlockEntityDataPacket

      public ClientboundBlockEntityDataPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper)
    • ClientboundBlockEntityDataPacket

      public ClientboundBlockEntityDataPacket(int x, int y, int z, @NonNull @NonNull BlockEntityType type, @Nullable com.viaversion.nbt.mini.MNBT nbt)
  • Method Details

    • serialize

      public void serialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper)
      Specified by:
      serialize in interface MinecraftPacket
    • getX

      public int getX()
    • getY

      public int getY()
    • getZ

      public int getZ()
    • getType

      @NonNull public @NonNull BlockEntityType getType()
    • getNbt

      public @Nullable com.viaversion.nbt.mini.MNBT getNbt()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object
    • withX

      public @NonNull ClientboundBlockEntityDataPacket withX(int x)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withY

      public @NonNull ClientboundBlockEntityDataPacket withY(int y)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withZ

      public @NonNull ClientboundBlockEntityDataPacket withZ(int z)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withType

      public @NonNull ClientboundBlockEntityDataPacket withType(@NonNull @NonNull BlockEntityType type)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withNbt

      public @NonNull ClientboundBlockEntityDataPacket withNbt(@Nullable com.viaversion.nbt.mini.MNBT nbt)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).