Record Class BlockEntityDataPacket
java.lang.Object
java.lang.Record
net.minestom.server.network.packet.server.play.BlockEntityDataPacket
- All Implemented Interfaces:
SendablePacket, ServerPacket, ServerPacket.Play
public record BlockEntityDataPacket(Point blockPosition, BlockEntityType type, @Nullable CompoundBinaryTag data)
extends Record
implements ServerPacket.Play
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServerPacket
ServerPacket.ComponentHolding, ServerPacket.Configuration, ServerPacket.Login, ServerPacket.Play, ServerPacket.Status -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBlockEntityDataPacket(Point blockPosition, int action, @Nullable CompoundBinaryTag data) Deprecated.BlockEntityDataPacket(Point blockPosition, BlockEntityType type, @Nullable CompoundBinaryTag data) Creates an instance of aBlockEntityDataPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintaction()Deprecated.Returns the value of theblockPositionrecord component.data()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
SERIALIZER
-
-
Constructor Details
-
BlockEntityDataPacket
@Deprecated public BlockEntityDataPacket(Point blockPosition, int action, @Nullable @Nullable CompoundBinaryTag data) Deprecated. -
BlockEntityDataPacket
public BlockEntityDataPacket(Point blockPosition, BlockEntityType type, @Nullable @Nullable CompoundBinaryTag data) Creates an instance of aBlockEntityDataPacketrecord class.- Parameters:
blockPosition- the value for theblockPositionrecord componenttype- the value for thetyperecord componentdata- the value for thedatarecord component
-
-
Method Details
-
action
Deprecated. -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
blockPosition
Returns the value of theblockPositionrecord component.- Returns:
- the value of the
blockPositionrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-