Record Class ValueSettingsBoard
java.lang.Object
java.lang.Record
com.simibubi.create.foundation.blockEntity.behaviour.ValueSettingsBoard
public record ValueSettingsBoard(net.minecraft.network.chat.Component title, int maxValue, int milestoneInterval, List<net.minecraft.network.chat.Component> rows, ValueSettingsFormatter formatter)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionValueSettingsBoard(net.minecraft.network.chat.Component title, int maxValue, int milestoneInterval, List<net.minecraft.network.chat.Component> rows, ValueSettingsFormatter formatter) Creates an instance of aValueSettingsBoardrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theformatterrecord component.final inthashCode()Returns a hash code value for this object.intmaxValue()Returns the value of themaxValuerecord component.intReturns the value of themilestoneIntervalrecord component.List<net.minecraft.network.chat.Component> rows()Returns the value of therowsrecord component.net.minecraft.network.chat.Componenttitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ValueSettingsBoard
public ValueSettingsBoard(net.minecraft.network.chat.Component title, int maxValue, int milestoneInterval, List<net.minecraft.network.chat.Component> rows, ValueSettingsFormatter formatter) Creates an instance of aValueSettingsBoardrecord class.- Parameters:
title- the value for thetitlerecord componentmaxValue- the value for themaxValuerecord componentmilestoneInterval- the value for themilestoneIntervalrecord componentrows- the value for therowsrecord componentformatter- the value for theformatterrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
title
public net.minecraft.network.chat.Component title()Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
maxValue
public int maxValue()Returns the value of themaxValuerecord component.- Returns:
- the value of the
maxValuerecord component
-
milestoneInterval
public int milestoneInterval()Returns the value of themilestoneIntervalrecord component.- Returns:
- the value of the
milestoneIntervalrecord component
-
rows
Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-
formatter
Returns the value of theformatterrecord component.- Returns:
- the value of the
formatterrecord component
-