Record Class InterfaceInjectionProcessor.InjectedInterface
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.ifaceinject.InterfaceInjectionProcessor.InjectedInterface
- Enclosing class:
InterfaceInjectionProcessor
-
Constructor Summary
ConstructorsConstructorDescriptionInjectedInterface(String modId, String className, String ifaceName, @Nullable String generics) Creates an instance of aInjectedInterfacerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.static booleancontainsGenerics(List<InterfaceInjectionProcessor.InjectedInterface> injectedInterfaces) final booleanIndicates whether some other object is "equal to" this one.fromMod(FabricModJson fabricModJson) fromMods(List<FabricModJson> fabricModJsons) @Nullable Stringgenerics()Returns the value of thegenericsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theifaceNamerecord component.modId()Returns the value of themodIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InjectedInterface
public InjectedInterface(String modId, String className, String ifaceName, @Nullable String generics) Creates an instance of aInjectedInterfacerecord class.- Parameters:
modId- the value for themodIdrecord componentclassName- the value for theclassNamerecord componentifaceName- the value for theifaceNamerecord componentgenerics- the value for thegenericsrecord component
-
-
Method Details
-
fromMod
public static List<InterfaceInjectionProcessor.InjectedInterface> fromMod(FabricModJson fabricModJson) -
fromMods
public static List<InterfaceInjectionProcessor.InjectedInterface> fromMods(List<FabricModJson> fabricModJsons) -
containsGenerics
public static boolean containsGenerics(List<InterfaceInjectionProcessor.InjectedInterface> injectedInterfaces) -
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). -
modId
Returns the value of themodIdrecord component.- Returns:
- the value of the
modIdrecord component
-
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
ifaceName
Returns the value of theifaceNamerecord component.- Returns:
- the value of the
ifaceNamerecord component
-
generics
Returns the value of thegenericsrecord component.- Returns:
- the value of the
genericsrecord component
-