Record Class BedrockPlayerSkins.Preview
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.render.BedrockPlayerSkins.Preview
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
BedrockPlayerSkins
public static record BedrockPlayerSkins.Preview(UUID id, net.minecraft.world.entity.player.PlayerSkin skin)
extends Record
implements AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.voidplay(BedrockBoneAnimation animation) net.minecraft.world.entity.player.PlayerSkinskin()Returns the value of theskinrecord component.voidstop()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Preview
Creates an instance of aPreviewrecord class.- Parameters:
id- the value for theidrecord componentskin- the value for theskinrecord component
-
-
Method Details
-
play
-
stop
public void stop() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
skin
public net.minecraft.world.entity.player.PlayerSkin skin()Returns the value of theskinrecord component.- Returns:
- the value of the
skinrecord component
-