Package io.papermc.asm.versioned
Interface VersionedRuleFactory
- All Known Implementing Classes:
CachingVersionedRuleFactory,DirectParameterRewrite.Versioned,DirectReturnRewrite.Versioned,DirectStaticRewrite.Versioned,FieldToMethodRewrite.Versioned,FuzzyParameterRewrite.Versioned,MappedVersionRuleFactory,MoveInstanceMethod.Versioned,SubTypeReturnRewrite.Versioned,SuperTypeParamRewrite.Versioned,VersionedRuleFactory.Chain
public interface VersionedRuleFactory
A factory for
RewriteRule that are determined
by a ApiVersion.-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic VersionedRuleFactorychain(VersionedRuleFactory... factories) static VersionedRuleFactorychain(Collection<? extends VersionedRuleFactory> factories) createRule(ApiVersion<?> apiVersion) static VersionedRuleFactoryforOwner(ClassDesc owner, Consumer<? super OwnedVersionedRuleFactoryFactory> firstFactoryConsumer, Consumer<? super OwnedVersionedRuleFactoryFactory>... factoryConsumers) static VersionedRuleFactoryforOwnerClass(Class<?> owner, Consumer<? super OwnedVersionedRuleFactoryFactory> firstFactoryConsumer, Consumer<? super OwnedVersionedRuleFactoryFactory>... factoryConsumers) static VersionedRuleFactoryforOwnerClasses(Set<Class<?>> owners, Consumer<? super OwnedVersionedRuleFactoryFactory> firstFactoryConsumer, Consumer<? super OwnedVersionedRuleFactoryFactory>... factoryConsumers) static VersionedRuleFactoryforOwners(Set<ClassDesc> owners, Consumer<? super OwnedVersionedRuleFactoryFactory> firstFactoryConsumer, Consumer<? super OwnedVersionedRuleFactoryFactory>... factoryConsumers)
-
Field Details
-
EMPTY
-
-
Method Details
-
forOwnerClass
@SafeVarargs static VersionedRuleFactory forOwnerClass(Class<?> owner, Consumer<? super OwnedVersionedRuleFactoryFactory> firstFactoryConsumer, Consumer<? super OwnedVersionedRuleFactoryFactory>... factoryConsumers) -
forOwnerClasses
@SafeVarargs static VersionedRuleFactory forOwnerClasses(Set<Class<?>> owners, Consumer<? super OwnedVersionedRuleFactoryFactory> firstFactoryConsumer, Consumer<? super OwnedVersionedRuleFactoryFactory>... factoryConsumers) -
forOwner
@SafeVarargs static VersionedRuleFactory forOwner(ClassDesc owner, Consumer<? super OwnedVersionedRuleFactoryFactory> firstFactoryConsumer, Consumer<? super OwnedVersionedRuleFactoryFactory>... factoryConsumers) -
forOwners
@SafeVarargs static VersionedRuleFactory forOwners(Set<ClassDesc> owners, Consumer<? super OwnedVersionedRuleFactoryFactory> firstFactoryConsumer, Consumer<? super OwnedVersionedRuleFactoryFactory>... factoryConsumers) -
chain
-
chain
-
createRule
-