API docs
API for bloodmoon
Below you can find an overview of all method available.
Below methods can be called by using the following method
1
BloodmoonAPI.someMethod();
Copied!
Bloodmoon
Items
Mobs
1
/**
2
* Return whether the bloodmoon is enabled for this world
3
* @param world: world
4
*/
5
boolean bloodmoonIsEnabled(World world)
6
7
/**
8
* Return whether the bloodmoon is enabled for this world
9
* @param world: world
10
*/
11
boolean bloodmoonIsRunning(World world)
12
13
/**
14
* Return whether the bloodmoon is scheduled for the next night
15
* @param world: world
16
*/
17
boolean bloodmoonIsScheduled(World world)
18
19
20
/**
21
* A method to start the bloodmoon in a world
22
* @param world: world
23
*/
24
void startBloodmoon(World world)
25
26
27
/**
28
* A method to stop the bloodmoon in a world
29
* @param world: world
30
*/
31
void stopBloodmoon(World world)
32
33
34
35
/**
36
* A method to schedule the bloodmoon in a world
37
* @param world: world
38
* THIS NO LONGER WORKS AS OF VERSION 4.0
39
*/
40
41
@Deprecated
42
void scheduleBloodmoon(World world)
43
44
45
/**
46
* A method to cancel the scheduled bloodmoon in a world
47
* @param world: world
48
*/
49
void cancelBloodmoon(World world)
50
Copied!
1
/**
2
* Get a bloodmoon item
3
* @param itemName: The name of the bloodmoon item you want to retrieve
4
* @return The bloodmoon item
5
*/
6
ItemStack getBloodmoonItem(String itemName)
Copied!
1
/**
2
* Return whether the entity is a custom entity
3
* @param entity: entity
4
*/
5
boolean isBloodmoonMob(Entity entity)
6
7
/**
8
* Spawn a bloodmoon mob on a location
9
* @param mobName: the name of the bloodmoon mob
10
* @param location: location where to spawn the bloodmoon mob
11
*/
12
void spawnBloodmoonMob(String mobName, Location location)
13
14
15
/**
16
* Kill all bloodmoon mobs in a specified world
17
* @param world: world
18
*/
19
void killAllBloodmoonMobs(World world)
Copied!
Last modified 1yr ago
Copy link