Record Class ImageExportUtil.ItemExportData
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.client.icons.ImageExportUtil.ItemExportData
- Enclosing class:
ImageExportUtil
-
Constructor Summary
ConstructorsConstructorDescriptionItemExportData(net.minecraft.world.item.ItemStack stack, File namespaceDir, String filename) Creates an instance of aItemExportDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.filename()Returns the value of thefilenamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thenamespaceDirrecord component.net.minecraft.world.item.ItemStackstack()Returns the value of thestackrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ItemExportData
Creates an instance of aItemExportDatarecord class.- Parameters:
stack- the value for thestackrecord componentnamespaceDir- the value for thenamespaceDirrecord componentfilename- the value for thefilenamerecord component
-
-
Method Details
-
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). -
stack
public net.minecraft.world.item.ItemStack stack()Returns the value of thestackrecord component.- Returns:
- the value of the
stackrecord component
-
namespaceDir
Returns the value of thenamespaceDirrecord component.- Returns:
- the value of the
namespaceDirrecord component
-
filename
Returns the value of thefilenamerecord component.- Returns:
- the value of the
filenamerecord component
-