Record Class ShulkerBoxTooltipPlugin
java.lang.Object
java.lang.Record
com.misterpemodder.shulkerboxtooltip.api.neoforge.ShulkerBoxTooltipPlugin
- Record Components:
apiImplSupplier- A function that returns an instance ofShulkerBoxTooltipApi.
- All Implemented Interfaces:
net.neoforged.fml.IExtensionPoint
public record ShulkerBoxTooltipPlugin(Supplier<ShulkerBoxTooltipApi> apiImplSupplier)
extends Record
implements net.neoforged.fml.IExtensionPoint
NeoForge-specific API, do not use on Forge, Fabric, or Quilt!
- Since:
- 4.1.0
-
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
-
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). -
apiImplSupplier
Returns the value of theapiImplSupplierrecord component.- Returns:
- the value of the
apiImplSupplierrecord component
-