Record Class GuideItemSettings
java.lang.Object
java.lang.Record
guideme.GuideItemSettings
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic com.mojang.serialization.Codec<GuideItemSettings> static GuideItemSettings -
Constructor Summary
ConstructorsConstructorDescriptionGuideItemSettings(Optional<net.minecraft.network.chat.Component> displayName, List<net.minecraft.network.chat.Component> tooltipLines, Optional<net.minecraft.resources.Identifier> itemModel) Creates an instance of aGuideItemSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionOptional<net.minecraft.network.chat.Component> Returns the value of thedisplayNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Optional<net.minecraft.resources.Identifier> Returns the value of theitemModelrecord component.List<net.minecraft.network.chat.Component> Returns the value of thetooltipLinesrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
-
CODEC
-
-
Constructor Details
-
GuideItemSettings
public GuideItemSettings(Optional<net.minecraft.network.chat.Component> displayName, List<net.minecraft.network.chat.Component> tooltipLines, Optional<net.minecraft.resources.Identifier> itemModel) Creates an instance of aGuideItemSettingsrecord class.- Parameters:
displayName- the value for thedisplayNamerecord componenttooltipLines- the value for thetooltipLinesrecord componentitemModel- the value for theitemModelrecord 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). -
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-
tooltipLines
Returns the value of thetooltipLinesrecord component.- Returns:
- the value of the
tooltipLinesrecord component
-
itemModel
Returns the value of theitemModelrecord component.- Returns:
- the value of the
itemModelrecord component
-