Package net.minecraft
Record Class class_8409.class_8410
java.lang.Object
java.lang.Record
net.minecraft.class_8409.class_8410
- Record Components:
type-tag-
- Enclosing class:
class_8409
public static record class_8409.class_8410(EntityType<?> type, Optional<NbtCompound> tag)
extends Record
- Mappings:
Namespace Name official cdq$aintermediary net/minecraft/class_8409$class_8410named net/minecraft/class_8409$class_8410official bintermediary comp_1434named typeofficial cintermediary comp_1435named tag
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<class_8409.class_8410>private final Optional<NbtCompound>The field for thetagrecord component.private final EntityType<?>The field for thetyperecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.method_50749(LivingEntity livingEntity) tag()Returns the value of thetagrecord component.final StringtoString()Returns a string representation of this record class.EntityType<?>type()Returns the value of thetyperecord component.
-
Field Details
-
type
The field for thetyperecord component. -
tag
The field for thetagrecord component. -
field_44129
- Mappings:
Namespace Name Mixin selector official aLcdq$a;a:Lcom/mojang/serialization/Codec;intermediary field_44129Lnet/minecraft/class_8409$class_8410;field_44129:Lcom/mojang/serialization/Codec;named field_44129Lnet/minecraft/class_8409$class_8410;field_44129:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
class_8410
-
-
Method Details
-
method_50749
- Mappings:
Namespace Name Mixin selector official aLcdq$a;a(Lbjh;)Lbir;intermediary method_50749Lnet/minecraft/class_8409$class_8410;method_50749(Lnet/minecraft/class_1309;)Lnet/minecraft/class_1297;named method_50749Lnet/minecraft/class_8409$class_8410;method_50749(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/Entity;
-
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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
tag
Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-