Record Class UnifiedDisplayItemCodecs.ModEntry
java.lang.Object
java.lang.Record
net.rebel459.unified.api.registry.UnifiedDisplayItemCodecs.ModEntry
- Enclosing class:
UnifiedDisplayItemCodecs
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<UnifiedDisplayItemCodecs.ModEntry> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mod()Returns the value of themodrecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.world.item.CreativeModeTab.TabVisibilityReturns the value of thevisibilityrecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
ModEntry
Creates an instance of aModEntryrecord class.- Parameters:
mod- the value for themodrecord componentvisibility- the value for thevisibilityrecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
mod
Returns the value of themodrecord component.- Returns:
- the value of the
modrecord component
-
visibility
public net.minecraft.world.item.CreativeModeTab.TabVisibility visibility()Returns the value of thevisibilityrecord component.- Returns:
- the value of the
visibilityrecord component
-