Class CaptureMethodRegistry
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.catching.CaptureMethodRegistry
Registry for 
CaptureMethod instances.
 Once registered here, they can be used in PokeBall JSON files or instances of PokeBall made via API.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic CaptureMethodgetCaptureMethod(String key) Gets aCaptureMethodfor a given key, or the fallback method if not found.static CaptureMethodGets the current fallbackCaptureMethod.static voidregisterCaptureMethod(CaptureMethod method, String... keys) Registers a newCaptureMethodfor the given keys.static voidSets the fallback method to be returned ifgetCaptureMethod(java.lang.String)doesn't find any method registered for a given key.
- 
Constructor Details- 
CaptureMethodRegistrypublic CaptureMethodRegistry()
 
- 
- 
Method Details- 
registerCaptureMethodRegisters a newCaptureMethodfor the given keys.- Parameters:
- method- New- CaptureMethodto be registered.
- keys- Varargs array of keys to register the new- CaptureMethodas.
 
- 
getCaptureMethodGets aCaptureMethodfor a given key, or the fallback method if not found.- Parameters:
- key-- CaptureMethodto try and get.
- Returns:
- The CaptureMethodfound matching the given key.
 
- 
setFallbackCaptureMethodSets the fallback method to be returned ifgetCaptureMethod(java.lang.String)doesn't find any method registered for a given key.- Parameters:
- method- The new fallback- CaptureMethod.
 
- 
getFallbackCaptureMethodGets the current fallbackCaptureMethod.- Returns:
- The current fallback CaptureMethod.
 
 
-