Files
ForbiddenMagic/src/api/java/am2/api/flickers/IFlickerRegistry.java
T
2022-09-24 08:55:21 +01:00

12 lines
650 B
Java

package am2.api.flickers;
public interface IFlickerRegistry {
/**
* Attempts to register a flicker operator into the flicker network
* @param singleton The instance of the class that should be called upon to perform the operations when loaded into a flicker block
* @param mask The bit mask representing the flicker combination. These are ORed affinity masks. @see am2.api.spell.enums.Affinity.getMask for specific mask flags (flickers represent an affinity)
* @return True if registered, false if the mask is already in use.
*/
public boolean registerFlickerOperator(IFlickerFunctionality singleton, int mask);
}