Package net.mezzdev.config.gui.api
Record Class ConfigInfo
java.lang.Object
java.lang.Record
net.mezzdev.config.gui.api.ConfigInfo
- Record Components:
title- the title linelines- the detail lines
public record ConfigInfo(net.minecraft.network.chat.Component title, List<net.minecraft.network.chat.Component> lines)
extends Record
Information shown in the config screen info panel or tooltip area.
- Since:
- 0.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionConfigInfo(net.minecraft.network.chat.Component title, List<net.minecraft.network.chat.Component> lines) Creates an instance of aConfigInforecord class.ConfigInfo(net.minecraft.network.chat.Component title, net.minecraft.network.chat.Component line) Create config info with one detail line. -
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.List<net.minecraft.network.chat.Component>lines()Returns the value of thelinesrecord component.net.minecraft.network.chat.Componenttitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConfigInfo
public ConfigInfo(net.minecraft.network.chat.Component title, List<net.minecraft.network.chat.Component> lines) Creates an instance of aConfigInforecord class. -
ConfigInfo
public ConfigInfo(net.minecraft.network.chat.Component title, net.minecraft.network.chat.Component line) Create config info with one detail line.- Parameters:
title- the title lineline- the detail line- Since:
- 0.1.0
-
-
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). -
title
public net.minecraft.network.chat.Component title()Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
lines
Returns the value of thelinesrecord component.- Returns:
- the value of the
linesrecord component
-