Record Class ItemAttributeModifiers.Display.Hidden
java.lang.Object
java.lang.Record
net.minecraft.world.item.component.ItemAttributeModifiers.Display.Hidden
- All Implemented Interfaces:
ItemAttributeModifiers.Display
- Enclosing interface:
ItemAttributeModifiers.Display
public static record ItemAttributeModifiers.Display.Hidden()
extends Record
implements ItemAttributeModifiers.Display
-
Nested Class Summary
Nested classes/interfaces inherited from interface ItemAttributeModifiers.Display
ItemAttributeModifiers.Display.Default, ItemAttributeModifiers.Display.Hidden, ItemAttributeModifiers.Display.OverrideText, ItemAttributeModifiers.Display.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.serialization.MapCodec<ItemAttributeModifiers.Display.Hidden> private static final ItemAttributeModifiers.Display.Hiddenprivate static final StreamCodec<RegistryFriendlyByteBuf, ItemAttributeModifiers.Display.Hidden> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(Consumer<Component> consumer, @Nullable Player player, Holder<Attribute> attribute, AttributeModifier modifier) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.type()
-
Field Details
-
INSTANCE
-
CODEC
-
STREAM_CODEC
private static final StreamCodec<RegistryFriendlyByteBuf, ItemAttributeModifiers.Display.Hidden> STREAM_CODEC
-
-
Constructor Details
-
Hidden
public Hidden()Creates an instance of aHiddenrecord class.
-
-
Method Details
-
type
- Specified by:
typein interfaceItemAttributeModifiers.Display
-
apply
public void apply(Consumer<Component> consumer, @Nullable Player player, Holder<Attribute> attribute, AttributeModifier modifier) - Specified by:
applyin interfaceItemAttributeModifiers.Display
-
toString
-
hashCode
-
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.
-