Record Class ClientExtensionInfo.MobEffect
java.lang.Object
java.lang.Record
org.moddingx.libx.registration.util.ClientExtensionInfo.MobEffect
- Enclosing class:
ClientExtensionInfo
public static record ClientExtensionInfo.MobEffect(Supplier<net.neoforged.neoforge.client.extensions.common.IClientMobEffectExtensions> extensions)
extends Record
Wraps some
client mob effect extensions. Using the LibX registration system, an
instance of this class can be registered on the client using the same id as the associated
MobEffect to set up the client mob effect 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.IClientMobEffectExtensions> 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
-
MobEffect
public MobEffect(net.neoforged.neoforge.client.extensions.common.IClientMobEffectExtensions extensions) -
MobEffect
public MobEffect(Supplier<net.neoforged.neoforge.client.extensions.common.IClientMobEffectExtensions> extensions) Creates an instance of aMobEffectrecord 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
public Supplier<net.neoforged.neoforge.client.extensions.common.IClientMobEffectExtensions> extensions()Returns the value of theextensionsrecord component.- Returns:
- the value of the
extensionsrecord component
-