Record Class PlayerDisplayGuiPayload
java.lang.Object
java.lang.Record
net.litetex.capes.menu.preview.render.PlayerDisplayGuiPayload
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerDisplayGuiPayload(net.minecraft.util.AssetInfo.TextureAsset bodyTexture, Supplier<net.minecraft.util.AssetInfo.TextureAsset> capeTextureSupplier, Supplier<net.minecraft.util.AssetInfo.TextureAsset> elytraTextureSupplier, boolean slim) Creates an instance of aPlayerDisplayGuiPayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.util.AssetInfo.TextureAssetReturns the value of thebodyTexturerecord component.Supplier<net.minecraft.util.AssetInfo.TextureAsset> Returns the value of thecapeTextureSupplierrecord component.Supplier<net.minecraft.util.AssetInfo.TextureAsset> Returns the value of theelytraTextureSupplierrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanslim()Returns the value of theslimrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlayerDisplayGuiPayload
public PlayerDisplayGuiPayload(net.minecraft.util.AssetInfo.TextureAsset bodyTexture, Supplier<net.minecraft.util.AssetInfo.TextureAsset> capeTextureSupplier, Supplier<net.minecraft.util.AssetInfo.TextureAsset> elytraTextureSupplier, boolean slim) Creates an instance of aPlayerDisplayGuiPayloadrecord class.- Parameters:
bodyTexture- the value for thebodyTexturerecord componentcapeTextureSupplier- the value for thecapeTextureSupplierrecord componentelytraTextureSupplier- the value for theelytraTextureSupplierrecord componentslim- the value for theslimrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
bodyTexture
public net.minecraft.util.AssetInfo.TextureAsset bodyTexture()Returns the value of thebodyTexturerecord component.- Returns:
- the value of the
bodyTexturerecord component
-
capeTextureSupplier
Returns the value of thecapeTextureSupplierrecord component.- Returns:
- the value of the
capeTextureSupplierrecord component
-
elytraTextureSupplier
Returns the value of theelytraTextureSupplierrecord component.- Returns:
- the value of the
elytraTextureSupplierrecord component
-
slim
public boolean slim()Returns the value of theslimrecord component.- Returns:
- the value of the
slimrecord component
-