Package net.minecraft.entity.passive
Record Class CatVariant
java.lang.Object
java.lang.Record
net.minecraft.entity.passive.CatVariant
- Record Components:
assetInfo-spawnConditions-
- All Implemented Interfaces:
VariantSelectorProvider<SpawnContext,SpawnCondition>
public record CatVariant(AssetInfo assetInfo, SpawnConditionSelectors spawnConditions)
extends Record
implements VariantSelectorProvider<SpawnContext,SpawnCondition>
- Mappings:
Namespace Name named net/minecraft/entity/passive/CatVariantintermediary net/minecraft/class_7375official cjznamed assetInfointermediary comp_3560official enamed spawnConditionsintermediary comp_3561official f
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.entity.VariantSelectorProvider
VariantSelectorProvider.Selector<Context,Condition extends VariantSelectorProvider.SelectorCondition<Context>>, VariantSelectorProvider.SelectorCondition<C>, VariantSelectorProvider.UnwrappedSelector<C, T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AssetInfoThe field for theassetInforecord component.static final com.mojang.serialization.Codec<CatVariant> static final com.mojang.serialization.Codec<RegistryEntry<CatVariant>> static final com.mojang.serialization.Codec<CatVariant> static final PacketCodec<RegistryByteBuf, RegistryEntry<CatVariant>> private final SpawnConditionSelectorsThe field for thespawnConditionsrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCatVariant(AssetInfo assetInfo) CatVariant(AssetInfo assetInfo, SpawnConditionSelectors spawnConditionSelectors) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassetInforecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thespawnConditionsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
assetInfo
The field for theassetInforecord component. -
spawnConditions
The field for thespawnConditionsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/entity/passive/CatVariant;CODEC:Lcom/mojang/serialization/Codec;intermediary field_56257Lnet/minecraft/class_7375;field_56257:Lcom/mojang/serialization/Codec;official aLcjz;a:Lcom/mojang/serialization/Codec;
-
NETWORK_CODEC
- Mappings:
Namespace Name Mixin selector named NETWORK_CODECLnet/minecraft/entity/passive/CatVariant;NETWORK_CODEC:Lcom/mojang/serialization/Codec;intermediary field_56258Lnet/minecraft/class_7375;field_56258:Lcom/mojang/serialization/Codec;official bLcjz;b:Lcom/mojang/serialization/Codec;
-
ENTRY_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_CODECLnet/minecraft/entity/passive/CatVariant;ENTRY_CODEC:Lcom/mojang/serialization/Codec;intermediary field_55959Lnet/minecraft/class_7375;field_55959:Lcom/mojang/serialization/Codec;official cLcjz;c:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/entity/passive/CatVariant;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_51941Lnet/minecraft/class_7375;field_51941:Lnet/minecraft/class_9139;official dLcjz;d:Lze;
-
-
Constructor Details
-
CatVariant
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/entity/passive/CatVariant;<init>(Lnet/minecraft/util/AssetInfo;)Vintermediary <init>Lnet/minecraft/class_7375;<init>(Lnet/minecraft/class_10726;)Vofficial <init>Lcjz;<init>(Lix;)V
-
CatVariant
-
-
Method Details
-
getSelectors
- Specified by:
getSelectorsin interfaceVariantSelectorProvider<SpawnContext,SpawnCondition> - Mappings:
Namespace Name Mixin selector named getSelectorsLnet/minecraft/entity/VariantSelectorProvider;getSelectors()Ljava/util/List;intermediary method_67126Lnet/minecraft/class_10695;method_67126()Ljava/util/List;official aLcul;a()Ljava/util/List;
-
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). -
assetInfo
Returns the value of theassetInforecord component.- Returns:
- the value of the
assetInforecord component
-
spawnConditions
Returns the value of thespawnConditionsrecord component.- Returns:
- the value of the
spawnConditionsrecord component
-