Class MethodSlices
java.lang.Object
org.spongepowered.asm.mixin.injection.code.MethodSlices
Represents a collection of
MethodSlices, mapped by ID. Stored ids may
be different to declared slice ids because they are mapped by the underlying
injector. Some injectors only support a single slice.-
Method Summary
Modifier and TypeMethodDescriptionFetch the slice with the specified id, returns null if no slice with the supplied id is availablestatic MethodSlicesparse(InjectionInfo info) Parse a collection of slices from the supplied injectorvoidCalled to do post-injection validation/debug logging for slicestoString()
-
Method Details
-
get
Fetch the slice with the specified id, returns null if no slice with the supplied id is available- Parameters:
id- slice id- Returns:
- matching slice or null
-
postInject
public void postInject()Called to do post-injection validation/debug logging for slices -
toString
-
parse
Parse a collection of slices from the supplied injector- Parameters:
info- owning injector- Returns:
- parsed slice collection
-