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$Override
intermediary net/minecraft/class_9285$class_11193$class_11196
official dfm$b$c
named value
intermediary comp_4035
official 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 Text
The field for thevalue
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addTooltip
(Consumer<Text> textConsumer, @Nullable PlayerEntity player, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier) final boolean
Indicates whether some other object is "equal to" this one.getType()
final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.
-
Field Details
-
value
The field for thevalue
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/component/type/AttributeModifiersComponent$Display$Override;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_59737
Lnet/minecraft/class_9285$class_11193$class_11196;field_59737:Lcom/mojang/serialization/MapCodec;
official d
Ldfm$b$c;d:Lcom/mojang/serialization/MapCodec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/component/type/AttributeModifiersComponent$Display$Override;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_59738
Lnet/minecraft/class_9285$class_11193$class_11196;field_59738:Lnet/minecraft/class_9139;
official e
Ldfm$b$c;e:Lzm;
-
-
Constructor Details
-
Override
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceAttributeModifiersComponent.Display
- Mappings:
Namespace Name Mixin selector named getType
Lnet/minecraft/component/type/AttributeModifiersComponent$Display;getType()Lnet/minecraft/component/type/AttributeModifiersComponent$Display$Type;
intermediary method_70734
Lnet/minecraft/class_9285$class_11193;method_70734()Lnet/minecraft/class_9285$class_11193$class_11197;
official c
Ldfm$b;c()Ldfm$b$d;
-
addTooltip
public void addTooltip(Consumer<Text> textConsumer, @Nullable @Nullable PlayerEntity player, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier modifier) - Specified by:
addTooltip
in interfaceAttributeModifiersComponent.Display
- Mappings:
Namespace Name Mixin selector named addTooltip
Lnet/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;)V
intermediary method_70731
Lnet/minecraft/class_9285$class_11193;method_70731(Ljava/util/function/Consumer;Lnet/minecraft/class_1657;Lnet/minecraft/class_6880;Lnet/minecraft/class_1322;)V
official a
Ldfm$b;a(Ljava/util/function/Consumer;Lcut;Ljl;Lcbq;)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 thevalue
record component.- Returns:
- the value of the
value
record component
-