Record Class ProcessorContextImpl
java.lang.Object
java.lang.Record
net.fabricmc.loom.configuration.processors.ProcessorContextImpl
- All Implemented Interfaces:
ProcessorContext
public record ProcessorContextImpl(ConfigContext configContext, MinecraftJar minecraftJar)
extends Record
implements ProcessorContext
-
Constructor Summary
ConstructorsConstructorDescriptionProcessorContextImpl(ConfigContext configContext, MinecraftJar minecraftJar) Creates an instance of aProcessorContextImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfigContextrecord component.LazyCloseable<net.fabricmc.tinyremapper.TinyRemapper> createRemapper(MappingsNamespace from, MappingsNamespace to) booleanfinal booleanIndicates whether some other object is "equal to" this one.net.fabricmc.mappingio.tree.MemoryMappingTreefinal inthashCode()Returns a hash code value for this object.booleanbooleanbooleanisMerged()Returns the value of theminecraftJarrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProcessorContextImpl
Creates an instance of aProcessorContextImplrecord class.- Parameters:
configContext- the value for theconfigContextrecord componentminecraftJar- the value for theminecraftJarrecord component
-
-
Method Details
-
getJarConfiguration
- Specified by:
getJarConfigurationin interfaceProcessorContext
-
isMerged
public boolean isMerged()- Specified by:
isMergedin interfaceProcessorContext
-
includesClient
public boolean includesClient()- Specified by:
includesClientin interfaceProcessorContext
-
includesServer
public boolean includesServer()- Specified by:
includesServerin interfaceProcessorContext
-
createRemapper
public LazyCloseable<net.fabricmc.tinyremapper.TinyRemapper> createRemapper(MappingsNamespace from, MappingsNamespace to) - Specified by:
createRemapperin interfaceProcessorContext
-
getMappings
public net.fabricmc.mappingio.tree.MemoryMappingTree getMappings()- Specified by:
getMappingsin interfaceProcessorContext
-
disableObfuscation
public boolean disableObfuscation()- Specified by:
disableObfuscationin interfaceProcessorContext
-
getProductionNamespace
- Specified by:
getProductionNamespacein interfaceProcessorContext
-
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). -
configContext
Returns the value of theconfigContextrecord component.- Returns:
- the value of the
configContextrecord component
-
minecraftJar
Returns the value of theminecraftJarrecord component.- Returns:
- the value of the
minecraftJarrecord component
-