Class FMLMixinGeneratingClassProcessor
java.lang.Object
net.neoforged.fml.loading.mixin.FMLMixinGeneratingClassProcessor
- All Implemented Interfaces:
ClassProcessor
Applies the parts of mixin transforms necessary for recomputing frames
-
Nested Class Summary
Nested classes/interfaces inherited from interface ClassProcessor
ClassProcessor.AfterProcessingContext, ClassProcessor.ComputeFlags, ClassProcessor.LinkContext, ClassProcessor.OrderingHint, ClassProcessor.SelectionContext, ClassProcessor.TransformationContext -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FMLAuditTrailprivate final ISyntheticClassRegistryprivate final FMLMixinServiceprivate final IMixinTransformerFields inherited from interface ClassProcessor
GENERATED_PACKAGE_MODULE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static booleangenerateClass(IMixinTransformer transformer, Type classType, ClassNode classNode) (package private) static booleangeneratesClass(ISyntheticClassRegistry registry, Type classType) Returns packages that this processor generates classes for, that do not already exist on the game layer.booleanReturns whether the processor wants to recieve the class.voidlink(ClassProcessor.LinkContext context) Called once after a set of class processors has been linked together with a bytecode source.name()Returns a unique identifier for this processor.Each class that the processor has opted to recieve is passed to this method for processing.Returns processors that this processor must run after.Returns processors that this processor must run before.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClassProcessor
afterProcessing, orderingHint
-
Field Details
-
auditTrail
-
transformer
-
registry
-
service
-
-
Constructor Details
-
FMLMixinGeneratingClassProcessor
-
-
Method Details
-
link
Description copied from interface:ClassProcessorCalled once after a set of class processors has been linked together with a bytecode source. FML will not call transformation methods on this class processor, until it has been linked.FML only links providers once during startup.
- Specified by:
linkin interfaceClassProcessor
-
name
Description copied from interface:ClassProcessorReturns a unique identifier for this processor.- Specified by:
namein interfaceClassProcessor- Returns:
- a unique identifier for this processor
-
runsAfter
Description copied from interface:ClassProcessorReturns processors that this processor must run after. This should includeClassProcessorIds.COMPUTING_FRAMESif the processor returns a result requiring frame re-computation.- Specified by:
runsAfterin interfaceClassProcessor- Returns:
- processors that this processor must run after
-
runsBefore
Description copied from interface:ClassProcessorReturns processors that this processor must run before.- Specified by:
runsBeforein interfaceClassProcessor- Returns:
- processors that this processor must run before
-
generatesPackages
Description copied from interface:ClassProcessorReturns packages that this processor generates classes for, that do not already exist on the game layer. Generated packages in the game layer will be in the module "net.neoforged.fml.generated".- Specified by:
generatesPackagesin interfaceClassProcessor- Returns:
- packages that this processor generates classes for, that do not already exist on the game layer
-
generatesClass
-
generateClass
-
handlesClass
Description copied from interface:ClassProcessorReturns whether the processor wants to recieve the class.- Specified by:
handlesClassin interfaceClassProcessor- Parameters:
context- the context of the class to consider- Returns:
- whether the processor wants to recieve the class
-
processClass
Description copied from interface:ClassProcessorEach class that the processor has opted to recieve is passed to this method for processing.- Specified by:
processClassin interfaceClassProcessor- Parameters:
context- the context of the class to process- Returns:
- the
ClassProcessor.ComputeFlagsindicating how the class should be rewritten.
-