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:
class_10695<class_10701,class_10699>
public record WolfVariant(WolfVariant.class_10688 assetInfo, class_10702 spawnConditions)
extends Record
implements class_10695<class_10701,class_10699>
- Mappings:
Namespace Name named net/minecraft/entity/passive/WolfVariantintermediary net/minecraft/class_9346official cjvnamed assetInfointermediary comp_3564official enamed spawnConditionsintermediary comp_3565official f
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.class_10695
class_10695.class_10696<Context,Condition extends class_10695.class_10697<Context>>, class_10695.class_10697<C>, class_10695.class_10698<C, T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final WolfVariant.class_10688The field for theassetInforecord 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 class_10702The field for thespawnConditionsrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateWolfVariant(WolfVariant.class_10688 class_10688) WolfVariant(WolfVariant.class_10688 class_10688, class_10702 class_10702) -
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/WolfVariant;CODEC:Lcom/mojang/serialization/Codec;intermediary field_49724Lnet/minecraft/class_9346;field_49724:Lcom/mojang/serialization/Codec;official aLcjv;a:Lcom/mojang/serialization/Codec;
-
field_56274
- Mappings:
Namespace Name Mixin selector named field_56274Lnet/minecraft/entity/passive/WolfVariant;field_56274:Lcom/mojang/serialization/Codec;intermediary field_56274Lnet/minecraft/class_9346;field_56274:Lcom/mojang/serialization/Codec;official bLcjv;b:Lcom/mojang/serialization/Codec;
-
ENTRY_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_CODECLnet/minecraft/entity/passive/WolfVariant;ENTRY_CODEC:Lcom/mojang/serialization/Codec;intermediary field_49980Lnet/minecraft/class_9346;field_49980:Lcom/mojang/serialization/Codec;official cLcjv;c:Lcom/mojang/serialization/Codec;
-
ENTRY_PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named ENTRY_PACKET_CODECLnet/minecraft/entity/passive/WolfVariant;ENTRY_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_51944Lnet/minecraft/class_9346;field_51944:Lnet/minecraft/class_9139;official dLcjv;d:Lyu;
-
-
Constructor Details
-
WolfVariant
-
WolfVariant
-
-
Method Details
-
method_67126
- Specified by:
method_67126in interfaceclass_10695<class_10701,class_10699> - Mappings:
Namespace Name Mixin selector named method_67126Lnet/minecraft/class_10695;method_67126()Ljava/util/List;intermediary method_67126Lnet/minecraft/class_10695;method_67126()Ljava/util/List;official aLcsu;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
-