Record Class PonderTagIndexScreen.ModTagsEntry
java.lang.Object
java.lang.Record
net.createmod.ponder.foundation.ui.PonderTagIndexScreen.ModTagsEntry
- Enclosing class:
PonderTagIndexScreen
-
Constructor Summary
ConstructorsConstructorDescriptionModTagsEntry(String modName, int tagCount, net.minecraft.client.renderer.Rect2i layoutArea, int yPos) Creates an instance of aModTagsEntryrecord class. -
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.net.minecraft.client.renderer.Rect2iReturns the value of thelayoutArearecord component.modName()Returns the value of themodNamerecord component.inttagCount()Returns the value of thetagCountrecord component.final StringtoString()Returns a string representation of this record class.intyPos()Returns the value of theyPosrecord component.
-
Constructor Details
-
ModTagsEntry
public ModTagsEntry(String modName, int tagCount, net.minecraft.client.renderer.Rect2i layoutArea, int yPos) Creates an instance of aModTagsEntryrecord class.- Parameters:
modName- the value for themodNamerecord componenttagCount- the value for thetagCountrecord componentlayoutArea- the value for thelayoutArearecord componentyPos- the value for theyPosrecord 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 '=='. -
modName
Returns the value of themodNamerecord component.- Returns:
- the value of the
modNamerecord component
-
tagCount
public int tagCount()Returns the value of thetagCountrecord component.- Returns:
- the value of the
tagCountrecord component
-
layoutArea
public net.minecraft.client.renderer.Rect2i layoutArea()Returns the value of thelayoutArearecord component.- Returns:
- the value of the
layoutArearecord component
-
yPos
public int yPos()Returns the value of theyPosrecord component.- Returns:
- the value of the
yPosrecord component
-