Package guideme
Record Class GuideItemSettings
java.lang.Object
java.lang.Record
guideme.GuideItemSettings
public record GuideItemSettings(Optional<net.minecraft.network.chat.Component> displayName, List<net.minecraft.network.chat.Component> tooltipLines, Optional<net.minecraft.resources.ResourceLocation> itemModel)
extends Record
Configuration settings for the automatically generated guide item.
-
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.ResourceLocation> 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.ResourceLocation> 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.ResourceLocation> 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
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. 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
-