public class PreLoadEvent
extends org.bukkit.event.Event
| Constructor and Description |
|---|
PreLoadEvent(MageController controller) |
| Modifier and Type | Method and Description |
|---|---|
Collection<AttributeProvider> |
getAttributeProviders() |
Collection<BlockBreakManager> |
getBlockBreakManagers() |
Collection<BlockBuildManager> |
getBlockBuildManagers() |
Collection<CastPermissionManager> |
getCastManagers() |
MageController |
getController() |
Collection<Currency> |
getCurrencies() |
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
Collection<PVPManager> |
getPVPManagers() |
Map<String,RequirementsProcessor> |
getRequirementProcessors() |
Collection<EntityTargetingManager> |
getTargetingManagers() |
Collection<TeamProvider> |
getTeamProviders() |
Map<String,PlayerWarpManager> |
getWarpManagers() |
void |
registerAttributeProvider(AttributeProvider provider)
Register an AttributeProvider, for adding custom attribute support to spells and mages.
|
void |
registerBlockBlockManager(BlockBreakManager manager)
Register a BlockBreakManager, for controlling whether or not players can break blocks with magic.
|
void |
registerBlockBuildManager(BlockBuildManager manager)
Register a BlockBuildManager, for controlling whether or not players can place blocks with magic.
|
void |
registerCastPermissionManager(CastPermissionManager manager)
Register a CastPermissionManager, for controlling whether or not players can cast spells in
specific regions.
|
void |
registerCurrency(Currency currency)
Register a custom currency, which can be used in shops, spell worth/earns and casting costs.
|
void |
registerEntityTargetingManager(EntityTargetingManager manager)
Register an EntityTargetingProvider, for determining when one entity may target another with spells.
|
void |
registerPlayerWarpManager(String key,
PlayerWarpManager manager)
Register a PlayerWarpManager, for providing warps to be used in the Recall menu.
|
void |
registerPVPManager(PVPManager manager)
Register a PVPManager, for controlling whether or not players can harm other players with magic.
|
void |
registerRequirementsProcessor(String requirementType,
RequirementsProcessor processor)
Register a RequirementsProcessor for handling a specific type of requirement.
|
void |
registerTeamProvider(TeamProvider provider)
Register a TeamProvider, to be able to make decisions about who players and mobs can target.
|
public PreLoadEvent(MageController controller)
public org.bukkit.event.HandlerList getHandlers()
getHandlers in class org.bukkit.event.Eventpublic static org.bukkit.event.HandlerList getHandlerList()
public MageController getController()
public void registerAttributeProvider(AttributeProvider provider)
provider - The provider to add.public void registerTeamProvider(TeamProvider provider)
provider - The provider to add.public void registerCurrency(Currency currency)
currency - A currency instance to registerpublic void registerRequirementsProcessor(String requirementType, RequirementsProcessor processor)
Requirement types are 1:1 with processors, each type may only have one processor associated with it.
Processors must be re-registered with each load.
Example requirement block, which might appear in a spell, Selector or other config:
requirements:
- type: skillapi
skill: enchanting
- type: avengers
power: hulkout
character: Hulk
requirementType - The type of requirements this processor handlesprocessor - The processor to registerpublic void registerBlockBlockManager(BlockBreakManager manager)
manager - The manager to add.public void registerPVPManager(PVPManager manager)
manager - The manager to add.public void registerBlockBuildManager(BlockBuildManager manager)
manager - The manager to add.public void registerCastPermissionManager(CastPermissionManager manager)
manager - The manager to add.public void registerEntityTargetingManager(EntityTargetingManager manager)
manager - The manager to add.public void registerPlayerWarpManager(String key, PlayerWarpManager manager)
key - The name of the managermanager - The manager to addpublic Map<String,PlayerWarpManager> getWarpManagers()
public Map<String,RequirementsProcessor> getRequirementProcessors()
public Collection<AttributeProvider> getAttributeProviders()
public Collection<TeamProvider> getTeamProviders()
public Collection<Currency> getCurrencies()
public Collection<BlockBreakManager> getBlockBreakManagers()
public Collection<BlockBuildManager> getBlockBuildManagers()
public Collection<PVPManager> getPVPManagers()
public Collection<CastPermissionManager> getCastManagers()
public Collection<EntityTargetingManager> getTargetingManagers()
Copyright © 2021 elMakers. All rights reserved.