Record Class ShulkerBoxTooltipPlugin
java.lang.Object
java.lang.Record
com.misterpemodder.shulkerboxtooltip.api.forge.ShulkerBoxTooltipPlugin
- Record Components:
apiImplSupplier- A function that returns an instance ofShulkerBoxTooltipApi.
- All Implemented Interfaces:
net.minecraftforge.fml.IExtensionPoint<ShulkerBoxTooltipPlugin>
public record ShulkerBoxTooltipPlugin(Supplier<ShulkerBoxTooltipApi> apiImplSupplier)
extends Record
implements net.minecraftforge.fml.IExtensionPoint<ShulkerBoxTooltipPlugin>
Forge-specific API, do not use on Fabric/Quilt!
- Since:
- 3.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraftforge.fml.IExtensionPoint
net.minecraftforge.fml.IExtensionPoint.DisplayTest -
Constructor Summary
ConstructorsConstructorDescriptionShulkerBoxTooltipPlugin(Supplier<ShulkerBoxTooltipApi> apiImplSupplier) Creates an instance of aShulkerBoxTooltipPluginrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapiImplSupplierrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ShulkerBoxTooltipPlugin
Creates an instance of aShulkerBoxTooltipPluginrecord class.- Parameters:
apiImplSupplier- the value for theapiImplSupplierrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
apiImplSupplier
Returns the value of theapiImplSupplierrecord component.- Returns:
- the value of the
apiImplSupplierrecord component
-