Package net.minecraft.entity.passive
Record Class WolfVariant
java.lang.Object
java.lang.Record
net.minecraft.entity.passive.WolfVariant
- Record Components:
assetInfo
-spawnConditions
-
- All Implemented Interfaces:
VariantSelectorProvider<SpawnContext,
SpawnCondition>
public record WolfVariant(WolfVariant.WolfAssetInfo assetInfo, SpawnConditionSelectors spawnConditions)
extends Record
implements VariantSelectorProvider<SpawnContext,SpawnCondition>
- Mappings:
Namespace Name named net/minecraft/entity/passive/WolfVariant
intermediary net/minecraft/class_9346
official cna
named assetInfo
intermediary comp_3564
official e
named spawnConditions
intermediary comp_3565
official f
-
Nested Class Summary
Nested ClassesNested 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 WolfVariant.WolfAssetInfo
The field for theassetInfo
record component.static final com.mojang.serialization.Codec
<WolfVariant> static final com.mojang.serialization.Codec
<RegistryEntry<WolfVariant>> static final PacketCodec
<RegistryByteBuf, RegistryEntry<WolfVariant>> static final com.mojang.serialization.Codec
<WolfVariant> private final SpawnConditionSelectors
The field for thespawnConditions
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
WolfVariant
(WolfVariant.WolfAssetInfo assetInfo) WolfVariant
(WolfVariant.WolfAssetInfo wolfAssetInfo, SpawnConditionSelectors spawnConditionSelectors) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theassetInfo
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thespawnConditions
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
assetInfo
The field for theassetInfo
record component. -
spawnConditions
The field for thespawnConditions
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/entity/passive/WolfVariant;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_49724
Lnet/minecraft/class_9346;field_49724:Lcom/mojang/serialization/Codec;
official a
Lcna;a:Lcom/mojang/serialization/Codec;
-
NETWORK_CODEC
- Mappings:
Namespace Name Mixin selector named NETWORK_CODEC
Lnet/minecraft/entity/passive/WolfVariant;NETWORK_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_56274
Lnet/minecraft/class_9346;field_56274:Lcom/mojang/serialization/Codec;
official b
Lcna;b:Lcom/mojang/serialization/Codec;
-
ENTRY_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_CODEC
Lnet/minecraft/entity/passive/WolfVariant;ENTRY_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_49980
Lnet/minecraft/class_9346;field_49980:Lcom/mojang/serialization/Codec;
official c
Lcna;c:Lcom/mojang/serialization/Codec;
-
ENTRY_PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_PACKET_CODEC
Lnet/minecraft/entity/passive/WolfVariant;ENTRY_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_51944
Lnet/minecraft/class_9346;field_51944:Lnet/minecraft/class_9139;
official d
Lcna;d:Lze;
-
-
Constructor Details
-
WolfVariant
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/passive/WolfVariant;<init>(Lnet/minecraft/entity/passive/WolfVariant$WolfAssetInfo;)V
intermediary <init>
Lnet/minecraft/class_9346;<init>(Lnet/minecraft/class_9346$class_10688;)V
official <init>
Lcna;<init>(Lcna$a;)V
-
WolfVariant
public WolfVariant(WolfVariant.WolfAssetInfo wolfAssetInfo, SpawnConditionSelectors spawnConditionSelectors)
-
-
Method Details
-
getSelectors
- Specified by:
getSelectors
in interfaceVariantSelectorProvider<SpawnContext,
SpawnCondition> - Mappings:
Namespace Name Mixin selector named getSelectors
Lnet/minecraft/entity/VariantSelectorProvider;getSelectors()Ljava/util/List;
intermediary method_67126
Lnet/minecraft/class_10695;method_67126()Ljava/util/List;
official a
Lcul;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 theassetInfo
record component.- Returns:
- the value of the
assetInfo
record component
-
spawnConditions
Returns the value of thespawnConditions
record component.- Returns:
- the value of the
spawnConditions
record component
-