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$Default
intermediary net/minecraft/class_9285$class_11193$class_11194
official dfm$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 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.
-
Field Details
-
INSTANCE
- Mappings:
Namespace Name Mixin selector named INSTANCE
Lnet/minecraft/component/type/AttributeModifiersComponent$Display$Default;INSTANCE:Lnet/minecraft/component/type/AttributeModifiersComponent$Display$Default;
intermediary field_59731
Lnet/minecraft/class_9285$class_11193$class_11194;field_59731:Lnet/minecraft/class_9285$class_11193$class_11194;
official c
Ldfm$b$a;c:Ldfm$b$a;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/component/type/AttributeModifiersComponent$Display$Default;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_59732
Lnet/minecraft/class_9285$class_11193$class_11194;field_59732:Lcom/mojang/serialization/MapCodec;
official d
Ldfm$b$a;d:Lcom/mojang/serialization/MapCodec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/component/type/AttributeModifiersComponent$Display$Default;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_59733
Lnet/minecraft/class_9285$class_11193$class_11194;field_59733:Lnet/minecraft/class_9139;
official e
Ldfm$b$a;e:Lzm;
-
-
Constructor Details
-
Default
public Default()Creates an instance of aDefault
record class.
-
-
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.
-