Record Class ClientExtensionInfo.Item
java.lang.Object
java.lang.Record
org.moddingx.libx.registration.util.ClientExtensionInfo.Item
- Enclosing class:
ClientExtensionInfo
public static record ClientExtensionInfo.Item(Supplier<net.neoforged.neoforge.client.extensions.common.IClientItemExtensions> extensions)
extends Record
Wraps some
client item extensions. Using the LibX registration system, an
instance of this class can be registered on the client using the same id as the associated
Item to set up the client item extensions.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Supplier<net.neoforged.neoforge.client.extensions.common.IClientItemExtensions> Returns the value of theextensionsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Item
public Item(net.neoforged.neoforge.client.extensions.common.IClientItemExtensions extensions) -
Item
public Item(Supplier<net.neoforged.neoforge.client.extensions.common.IClientItemExtensions> extensions) Creates an instance of aItemrecord class.- Parameters:
extensions- the value for theextensionsrecord 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). -
extensions
Returns the value of theextensionsrecord component.- Returns:
- the value of the
extensionsrecord component
-