Package net.minecraft.entity.player
Record Class SkinTextures.SkinOverride
java.lang.Object
java.lang.Record
net.minecraft.entity.player.SkinTextures.SkinOverride
- Record Components:
body-cape-elytra-model-
- Enclosing class:
SkinTextures
public static record SkinTextures.SkinOverride(Optional<AssetInfo.TextureAssetInfo> body, Optional<AssetInfo.TextureAssetInfo> cape, Optional<AssetInfo.TextureAssetInfo> elytra, Optional<PlayerSkinType> model)
extends Record
- Mappings:
Namespace Name named net/minecraft/entity/player/SkinTextures$SkinOverrideintermediary net/minecraft/class_8685$class_11892official czp$anamed bodyintermediary comp_4765official dnamed capeintermediary comp_4766official enamed elytraintermediary comp_4767official fnamed modelintermediary comp_4768official g
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<AssetInfo.TextureAssetInfo> The field for thebodyrecord component.private final Optional<AssetInfo.TextureAssetInfo> The field for thecaperecord component.static final com.mojang.serialization.MapCodec<SkinTextures.SkinOverride> private final Optional<AssetInfo.TextureAssetInfo> The field for theelytrarecord component.static final SkinTextures.SkinOverrideprivate final Optional<PlayerSkinType> The field for themodelrecord component.static final PacketCodec<ByteBuf, SkinTextures.SkinOverride> -
Constructor Summary
ConstructorsConstructorDescriptionSkinOverride(Optional<AssetInfo.TextureAssetInfo> optional, Optional<AssetInfo.TextureAssetInfo> optional2, Optional<AssetInfo.TextureAssetInfo> optional3, Optional<PlayerSkinType> optional4) -
Method Summary
Modifier and TypeMethodDescriptionbody()Returns the value of thebodyrecord component.cape()Returns the value of thecaperecord component.static SkinTextures.SkinOverridecreate(Optional<AssetInfo.TextureAssetInfo> texture, Optional<AssetInfo.TextureAssetInfo> cape, Optional<AssetInfo.TextureAssetInfo> elytra, Optional<PlayerSkinType> model) elytra()Returns the value of theelytrarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
body
The field for thebodyrecord component. -
cape
The field for thecaperecord component. -
elytra
The field for theelytrarecord component. -
model
The field for themodelrecord component. -
EMPTY
- Mappings:
Namespace Name Mixin selector named EMPTYLnet/minecraft/entity/player/SkinTextures$SkinOverride;EMPTY:Lnet/minecraft/entity/player/SkinTextures$SkinOverride;intermediary field_63029Lnet/minecraft/class_8685$class_11892;field_63029:Lnet/minecraft/class_8685$class_11892;official aLczp$a;a:Lczp$a;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/player/SkinTextures$SkinOverride;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_62523Lnet/minecraft/class_8685$class_11892;field_62523:Lcom/mojang/serialization/MapCodec;official bLczp$a;b:Lcom/mojang/serialization/MapCodec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/entity/player/SkinTextures$SkinOverride;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_62524Lnet/minecraft/class_8685$class_11892;field_62524:Lnet/minecraft/class_9139;official cLczp$a;c:Laae;
-
-
Constructor Details
-
SkinOverride
public SkinOverride(Optional<AssetInfo.TextureAssetInfo> optional, Optional<AssetInfo.TextureAssetInfo> optional2, Optional<AssetInfo.TextureAssetInfo> optional3, Optional<PlayerSkinType> optional4)
-
-
Method Details
-
create
public static SkinTextures.SkinOverride create(Optional<AssetInfo.TextureAssetInfo> texture, Optional<AssetInfo.TextureAssetInfo> cape, Optional<AssetInfo.TextureAssetInfo> elytra, Optional<PlayerSkinType> model) - Mappings:
Namespace Name Mixin selector named createLnet/minecraft/entity/player/SkinTextures$SkinOverride;create(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/entity/player/SkinTextures$SkinOverride;intermediary method_74885Lnet/minecraft/class_8685$class_11892;method_74885(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Lnet/minecraft/class_8685$class_11892;official aLczp$a;a(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;)Lczp$a;
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
cape
Returns the value of thecaperecord component.- Returns:
- the value of the
caperecord component
-
elytra
Returns the value of theelytrarecord component.- Returns:
- the value of the
elytrarecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-