Package io.papermc.asm.rules.rename
Class RenameRule.Builder
java.lang.Object
io.papermc.asm.rules.rename.RenameRule.Builder
- All Implemented Interfaces:
Builder<RenameRule>
- Enclosing class:
- RenameRule
-
Method Summary
Modifier and TypeMethodDescriptionannotationAttribute(ClassDesc owner, String legacyName, String newName) Note that you also have to remap the method for the annotation attribute.annotationAttribute(String ownerDescriptor, String legacyName, String newName) Note that you also have to remap the method for the annotation attribute.build()fieldByDesc(ClassDesc owner, String legacyFieldName, String newFieldName) fieldByInternal(Iterable<String> owners, String legacyFieldName, String newFieldName) fieldByInternal(String owner, String legacyFieldName, String newFieldName) fieldsByDesc(Iterable<ClassDesc> owners, String legacyFieldName, String newFieldName) methodByDesc(ClassDesc owner, String legacyMethodName, MethodTypeDesc desc, String newMethodName) methodByDesc(Iterable<ClassDesc> owners, String legacyMethodName, MethodTypeDesc desc, String newMethodName) methodByInternal(Iterable<String> owners, String legacyMethodName, MethodTypeDesc desc, String newMethodName) methodByInternal(String owner, String legacyMethodName, String desc, String newMethodName) Use/instead of..Use/instead of..
-
Method Details
-
methodByDesc
public RenameRule.Builder methodByDesc(Iterable<ClassDesc> owners, String legacyMethodName, MethodTypeDesc desc, String newMethodName) -
methodByDesc
public RenameRule.Builder methodByDesc(ClassDesc owner, String legacyMethodName, MethodTypeDesc desc, String newMethodName) -
methodByInternal
public RenameRule.Builder methodByInternal(Iterable<String> owners, String legacyMethodName, MethodTypeDesc desc, String newMethodName) -
methodByInternal
public RenameRule.Builder methodByInternal(String owner, String legacyMethodName, String desc, String newMethodName) -
fieldsByDesc
public RenameRule.Builder fieldsByDesc(Iterable<ClassDesc> owners, String legacyFieldName, String newFieldName) -
fieldByDesc
-
fieldByInternal
public RenameRule.Builder fieldByInternal(Iterable<String> owners, String legacyFieldName, String newFieldName) -
fieldByInternal
public RenameRule.Builder fieldByInternal(String owner, String legacyFieldName, String newFieldName) -
annotationAttribute
Note that you also have to remap the method for the annotation attribute. -
annotationAttribute
public RenameRule.Builder annotationAttribute(String ownerDescriptor, String legacyName, String newName) Note that you also have to remap the method for the annotation attribute. -
type
Use/instead of.. -
type
Use/instead of.. -
build
- Specified by:
buildin interfaceBuilder<RenameRule>
-