Record Class InspectionOptions
java.lang.Object
java.lang.Record
io.hymods.lib.data.InspectionOptions
public record InspectionOptions(int maxNameLength, boolean showId, boolean showModName, boolean showBenchInfo, boolean showMiningInfo, boolean showFarmingInfo, boolean showBlockEntityInfo, boolean showEntityHealth)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInspectionOptions(int maxNameLength, boolean showId, boolean showModName, boolean showBenchInfo, boolean showMiningInfo, boolean showFarmingInfo, boolean showBlockEntityInfo, boolean showEntityHealth) Creates an instance of aInspectionOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic InspectionOptionsdefaults()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxNameLengthrecord component.booleanReturns the value of theshowBenchInforecord component.booleanReturns the value of theshowBlockEntityInforecord component.booleanReturns the value of theshowEntityHealthrecord component.booleanReturns the value of theshowFarmingInforecord component.booleanshowId()Returns the value of theshowIdrecord component.booleanReturns the value of theshowMiningInforecord component.booleanReturns the value of theshowModNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InspectionOptions
public InspectionOptions(int maxNameLength, boolean showId, boolean showModName, boolean showBenchInfo, boolean showMiningInfo, boolean showFarmingInfo, boolean showBlockEntityInfo, boolean showEntityHealth) Creates an instance of aInspectionOptionsrecord class.- Parameters:
maxNameLength- the value for themaxNameLengthrecord componentshowId- the value for theshowIdrecord componentshowModName- the value for theshowModNamerecord componentshowBenchInfo- the value for theshowBenchInforecord componentshowMiningInfo- the value for theshowMiningInforecord componentshowFarmingInfo- the value for theshowFarmingInforecord componentshowBlockEntityInfo- the value for theshowBlockEntityInforecord componentshowEntityHealth- the value for theshowEntityHealthrecord component
-
-
Method Details
-
defaults
-
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 with thecomparemethod from their corresponding wrapper classes. -
maxNameLength
public int maxNameLength()Returns the value of themaxNameLengthrecord component.- Returns:
- the value of the
maxNameLengthrecord component
-
showId
public boolean showId()Returns the value of theshowIdrecord component.- Returns:
- the value of the
showIdrecord component
-
showModName
public boolean showModName()Returns the value of theshowModNamerecord component.- Returns:
- the value of the
showModNamerecord component
-
showBenchInfo
public boolean showBenchInfo()Returns the value of theshowBenchInforecord component.- Returns:
- the value of the
showBenchInforecord component
-
showMiningInfo
public boolean showMiningInfo()Returns the value of theshowMiningInforecord component.- Returns:
- the value of the
showMiningInforecord component
-
showFarmingInfo
public boolean showFarmingInfo()Returns the value of theshowFarmingInforecord component.- Returns:
- the value of the
showFarmingInforecord component
-
showBlockEntityInfo
public boolean showBlockEntityInfo()Returns the value of theshowBlockEntityInforecord component.- Returns:
- the value of the
showBlockEntityInforecord component
-
showEntityHealth
public boolean showEntityHealth()Returns the value of theshowEntityHealthrecord component.- Returns:
- the value of the
showEntityHealthrecord component
-