Record Class LowCodeModLanguageProvider.LowCodeModTarget
java.lang.Object
java.lang.Record
net.minecraftforge.fml.lowcodemod.LowCodeModLanguageProvider.LowCodeModTarget
- All Implemented Interfaces:
net.minecraftforge.forgespi.language.IModLanguageProvider.IModLanguageLoader
- Enclosing class:
LowCodeModLanguageProvider
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprivate
LowCodeModTarget
(String modId) Creates an instance of aLowCodeModTarget
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.<T> T
loadMod
(net.minecraftforge.forgespi.language.IModInfo info, net.minecraftforge.forgespi.language.ModFileScanData modFileScanResults, ModuleLayer gameLayer) modId()
Returns the value of themodId
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
modId
The field for themodId
record component. -
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
-
Constructor Details
-
LowCodeModTarget
Creates an instance of aLowCodeModTarget
record class.- Parameters:
modId
- the value for themodId
record component
-
-
Method Details
-
loadMod
public <T> T loadMod(net.minecraftforge.forgespi.language.IModInfo info, net.minecraftforge.forgespi.language.ModFileScanData modFileScanResults, ModuleLayer gameLayer) - Specified by:
loadMod
in interfacenet.minecraftforge.forgespi.language.IModLanguageProvider.IModLanguageLoader
-
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 themodId
record component.- Returns:
- the value of the
modId
record component
-