Package net.minecraft.component.type
Record Class AttributeModifiersComponent.Display.Default
java.lang.Object
java.lang.Record
net.minecraft.component.type.AttributeModifiersComponent.Display.Default
- All Implemented Interfaces:
AttributeModifiersComponent.Display
- Enclosing interface:
AttributeModifiersComponent.Display
public static record AttributeModifiersComponent.Display.Default()
extends Record
implements AttributeModifiersComponent.Display
- Mappings:
Namespace Name named net/minecraft/component/type/AttributeModifiersComponent$Display$Defaultintermediary net/minecraft/class_9285$class_11193$class_11194official dkh$b$a
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.component.type.AttributeModifiersComponent.Display
AttributeModifiersComponent.Display.Default, AttributeModifiersComponent.Display.Hidden, AttributeModifiersComponent.Display.Override, AttributeModifiersComponent.Display.Type -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final com.mojang.serialization.MapCodec<AttributeModifiersComponent.Display.Default> (package private) static final AttributeModifiersComponent.Display.Default(package private) static final PacketCodec<RegistryByteBuf, AttributeModifiersComponent.Display.Default> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTooltip(Consumer<Text> textConsumer, @Nullable PlayerEntity player, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier) final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
INSTANCE
- Mappings:
Namespace Name Mixin selector named INSTANCELnet/minecraft/component/type/AttributeModifiersComponent$Display$Default;INSTANCE:Lnet/minecraft/component/type/AttributeModifiersComponent$Display$Default;intermediary field_59731Lnet/minecraft/class_9285$class_11193$class_11194;field_59731:Lnet/minecraft/class_9285$class_11193$class_11194;official cLdkh$b$a;c:Ldkh$b$a;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/AttributeModifiersComponent$Display$Default;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_59732Lnet/minecraft/class_9285$class_11193$class_11194;field_59732:Lcom/mojang/serialization/MapCodec;official dLdkh$b$a;d:Lcom/mojang/serialization/MapCodec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/AttributeModifiersComponent$Display$Default;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_59733Lnet/minecraft/class_9285$class_11193$class_11194;field_59733:Lnet/minecraft/class_9139;official eLdkh$b$a;e:Laae;
-
-
Constructor Details
-
Default
public Default()Creates an instance of aDefaultrecord class.
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceAttributeModifiersComponent.Display- Mappings:
Namespace Name Mixin selector named getTypeLnet/minecraft/component/type/AttributeModifiersComponent$Display;getType()Lnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;intermediary method_70734Lnet/minecraft/class_9285$class_11193;method_70734()Lnet/minecraft/class_9285$class_11193$class_11197;official cLdkh$b;c()Ldkh$b$d;
-
addTooltip
public void addTooltip(Consumer<Text> textConsumer, @Nullable @Nullable PlayerEntity player, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier) - Specified by:
addTooltipin interfaceAttributeModifiersComponent.Display- Mappings:
Namespace Name Mixin selector named addTooltipLnet/minecraft/component/type/AttributeModifiersComponent$Display;addTooltip(Ljava/util/function/Consumer;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/entity/attribute/EntityAttributeModifier;)Vintermediary method_70731Lnet/minecraft/class_9285$class_11193;method_70731(Ljava/util/function/Consumer;Lnet/minecraft/class_1657;Lnet/minecraft/class_6880;Lnet/minecraft/class_1322;)Vofficial aLdkh$b;a(Ljava/util/function/Consumer;Lczl;Ljk;Lcga;)V
-
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.
-