Package net.minecraft.component.type
Record Class AttributeModifiersComponent.Display.Override
java.lang.Object
java.lang.Record
net.minecraft.component.type.AttributeModifiersComponent.Display.Override
- Record Components:
value-
- All Implemented Interfaces:
AttributeModifiersComponent.Display
- Enclosing interface:
AttributeModifiersComponent.Display
public static record AttributeModifiersComponent.Display.Override(Text value)
extends Record
implements AttributeModifiersComponent.Display
- Mappings:
Namespace Name named net/minecraft/component/type/AttributeModifiersComponent$Display$Overrideintermediary net/minecraft/class_9285$class_11193$class_11196official dkh$b$cnamed valueintermediary comp_4035official c
-
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.Override> (package private) static final PacketCodec<RegistryByteBuf, AttributeModifiersComponent.Display.Override> private final TextThe field for thevaluerecord component. -
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.value()Returns the value of thevaluerecord component.
-
Field Details
-
value
The field for thevaluerecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/component/type/AttributeModifiersComponent$Display$Override;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_59737Lnet/minecraft/class_9285$class_11193$class_11196;field_59737:Lcom/mojang/serialization/MapCodec;official dLdkh$b$c;d:Lcom/mojang/serialization/MapCodec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/component/type/AttributeModifiersComponent$Display$Override;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_59738Lnet/minecraft/class_9285$class_11193$class_11196;field_59738:Lnet/minecraft/class_9139;official eLdkh$b$c;e:Laae;
-
-
Constructor Details
-
Override
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-