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 net.minecraft.world.item.component.ItemAttributeModifiers.Display
ItemAttributeModifiers.Display.Default, ItemAttributeModifiers.Display.Hidden, ItemAttributeModifiers.Display.OverrideText, ItemAttributeModifiers.Display.Type -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final com.mojang.serialization.MapCodec<ItemAttributeModifiers.Display.Hidden> (package private) static final ItemAttributeModifiers.Display.Hidden(package private) static final StreamCodec<RegistryFriendlyByteBuf, ItemAttributeModifiers.Display.Hidden> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(Consumer<Component> p_416397_, @Nullable Player p_415921_, Holder<Attribute> p_415720_, AttributeModifier p_416314_) 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
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> p_416397_, @Nullable Player p_415921_, Holder<Attribute> p_415720_, AttributeModifier p_416314_) - Specified by:
applyin interfaceItemAttributeModifiers.Display
-
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.
-