Record Class SyncData
java.lang.Object
java.lang.Record
com.mrbysco.armorposer.data.SyncData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, SyncData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theentityUUIDrecord component.final booleanIndicates whether some other object is "equal to" this one.voidhandleData(net.minecraft.world.entity.decoration.ArmorStand armorStand, net.minecraft.world.entity.player.Player player) final inthashCode()Returns a hash code value for this object.net.minecraft.nbt.CompoundTagtag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, SyncData> STREAM_CODEC
-
-
Constructor Details
-
SyncData
Creates an instance of aSyncDatarecord class.- Parameters:
entityUUID- the value for theentityUUIDrecord componenttag- the value for thetagrecord component
-
-
Method Details
-
handleData
public void handleData(net.minecraft.world.entity.decoration.ArmorStand armorStand, net.minecraft.world.entity.player.Player player) -
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). -
entityUUID
Returns the value of theentityUUIDrecord component.- Returns:
- the value of the
entityUUIDrecord component
-
tag
public net.minecraft.nbt.CompoundTag tag()Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-