Record Class CataloguePanel.CataloguePayload
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.client.editor.panel.tools.CataloguePanel.CataloguePayload
- Enclosing class:
CataloguePanel
-
Constructor Summary
ConstructorsConstructorDescriptionCataloguePayload(net.minecraft.resources.Identifier id, String type, List<String> tags, net.minecraft.resources.Identifier iconLocation, ImGuiUtils.Image texture, String displayName) Creates an instance of aCataloguePayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.booleannet.minecraft.resources.IdentifierReturns the value of theiconLocationrecord component.net.minecraft.resources.Identifierid()Returns the value of theidrecord component.tags()Returns the value of thetagsrecord component.texture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
CataloguePayload
public CataloguePayload(net.minecraft.resources.Identifier id, String type, List<String> tags, net.minecraft.resources.Identifier iconLocation, ImGuiUtils.Image texture, String displayName) Creates an instance of aCataloguePayloadrecord class.- Parameters:
id- the value for theidrecord componenttype- the value for thetyperecord componenttags- the value for thetagsrecord componenticonLocation- the value for theiconLocationrecord componenttexture- the value for thetexturerecord componentdisplayName- the value for thedisplayNamerecord component
-
-
Method Details
-
hasTexture
public boolean hasTexture() -
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 withObjects::equals(Object,Object). -
id
public net.minecraft.resources.Identifier id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
tags
-
iconLocation
public net.minecraft.resources.Identifier iconLocation()Returns the value of theiconLocationrecord component.- Returns:
- the value of the
iconLocationrecord component
-
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
displayName
Returns the value of thedisplayNamerecord component.- Returns:
- the value of the
displayNamerecord component
-