Interface ResourceSpawnEvent<G extends Game,S extends ItemSpawner,T extends ItemSpawnerType,I extends org.screamingsandals.lib.utils.Wrapper,L extends org.screamingsandals.lib.utils.Wrapper>
- All Superinterfaces:
BWCancellable
@NonExtendable
public interface ResourceSpawnEvent<G extends Game,S extends ItemSpawner,T extends ItemSpawnerType,I extends org.screamingsandals.lib.utils.Wrapper,L extends org.screamingsandals.lib.utils.Wrapper>
extends BWCancellable
-
Method Summary
Modifier and TypeMethodDescriptiongetGame()
getType()
static void
handle
(Object plugin, Consumer<ResourceSpawnEvent<Game, ItemSpawner, ItemSpawnerType, org.screamingsandals.lib.utils.Wrapper, org.screamingsandals.lib.utils.Wrapper>> consumer) void
setResource
(Object resource) Methods inherited from interface org.screamingsandals.bedwars.api.events.BWCancellable
isCancelled, setCancelled
-
Method Details
-
getGame
G getGame() -
getItemSpawner
S getItemSpawner() -
getLocation
L getLocation() -
getResource
I getResource() -
getType
T getType() -
setResource
- Parameters:
resource
- wrapper or platform ItemStack
-
handle
static void handle(Object plugin, Consumer<ResourceSpawnEvent<Game, ItemSpawner, ItemSpawnerType, org.screamingsandals.lib.utils.Wrapper, org.screamingsandals.lib.utils.Wrapper>> consumer)
-