Package net.fabricmc.classtweaker.api
Interface ClassTweaker
- All Superinterfaces:
ClassTweakerVisitor
- All Known Implementing Classes:
ClassTweakerImpl
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateClassVisitor(int api, @Nullable ClassVisitor classVisitor, @Nullable BiConsumer<String, byte[]> generatedClassConsumer) getAccessWidener(String className) getInjectedInterfaces(String className) The mapping namespace of the current class tweaker.Contains a list of all classes that should be transformed.static ClassTweakerMethods inherited from interface net.fabricmc.classtweaker.api.visitor.ClassTweakerVisitor
visitAccessWidener, visitHeader, visitInjectedInterface, visitLineNumber
-
Field Details
-
AW_V1
static final int AW_V1- See Also:
-
AW_V2
static final int AW_V2- See Also:
-
CT_V1
static final int CT_V1- See Also:
-
CT_LATEST
static final int CT_LATEST- See Also:
-
-
Method Details
-
newInstance
- Returns:
- a new
ClassTweakerinstance.
-
getNamespace
String getNamespace()The mapping namespace of the current class tweaker.- Returns:
- the mappings namespace.
-
getTargets
Contains a list of all classes that should be transformed. This may contain classes (usually parent classes) that do have a direct class tweak to be applied to them.Names are forward-slash separated internal names (i.e. a/b/C$I).
-
getAccessWidener
-
getAllAccessWideners
Map<String,AccessWidener> getAllAccessWideners() -
getInjectedInterfaces
-
getAllInjectedInterfaces
Map<String,List<InjectedInterface>> getAllInjectedInterfaces() -
createClassVisitor
ClassVisitor createClassVisitor(int api, @Nullable @Nullable ClassVisitor classVisitor, @Nullable @Nullable BiConsumer<String, byte[]> generatedClassConsumer)
-