Class AccessTransformerService
java.lang.Object
net.neoforged.fml.common.asm.AccessTransformerService
- All Implemented Interfaces:
ClassProcessor
-
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 net.neoforged.accesstransformer.api.AccessTransformerEngineFields inherited from interface ClassProcessor
GENERATED_PACKAGE_MODULE -
Constructor Summary
ConstructorsConstructorDescriptionAccessTransformerService(net.neoforged.accesstransformer.api.AccessTransformerEngine engine) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the processor wants to recieve the class.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 before.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClassProcessor
afterProcessing, generatesPackages, link, orderingHint, runsAfter
-
Field Details
-
engine
private final net.neoforged.accesstransformer.api.AccessTransformerEngine engine
-
-
Constructor Details
-
AccessTransformerService
public AccessTransformerService(net.neoforged.accesstransformer.api.AccessTransformerEngine engine)
-
-
Method Details
-
name
Description copied from interface:ClassProcessorReturns a unique identifier for this processor.- Specified by:
namein interfaceClassProcessor- Returns:
- a unique identifier for this processor
-
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
-
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.
-
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
-