🌘
Bloodmoon Advanced
  • Bloodmoon Advanced
  • ❓FAQ
  • 📚Guides
    • Enable bloodmoon for your world
    • How to use commands in console
    • Use custom sounds
  • General
    • Commands & Permissions
  • ⏰SCHEDULES
    • Introduction
    • Commands
    • Properties
  • 🚧SIGNS
    • Introduction
    • Overview
  • 💀Mobs
    • Introduction
    • Properties
    • Commands
    • Spawn mechanics
    • Boss
    • Mythic mobs
  • 📦Items
    • Introduction
    • Commands
  • 🌡️Lifecycles
    • Introduction
    • Commands
  • 🎬Actions
    • Introduction
    • Commands
  • 💀Death Actions
    • Introduction
  • ⏲️ Events
    • Introduction
    • Stop Event
    • Death Event
    • Heal Event
    • Lightning Event
    • Potion effect Event
    • Teleport Event
    • Swap Event
    • Reinforcement Event
    • Dash Event
    • Speak Event
    • Respawn Event
    • Explode Event
    • Sound Event
    • Vanish Event
    • Shield Event
  • Placeholder API
    • Overview of placeholders
  • 📄Configs
    • config.yml
    • mobs.yml
    • actions.yml
    • lifecycles.yml
    • items.yml
    • messages.yml
    • schedules.yml
  • 🖇️API
    • Introduction
    • API docs
Powered by GitBook
On this page

Was this helpful?

  1. 🖇️API

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

BloodmoonAPI.someMethod();

/**
 * Return whether the bloodmoon is enabled for this world
 * @param world: world
 */
boolean bloodmoonIsEnabled(World world)

/**
 * Return whether the bloodmoon is enabled for this world
 * @param world: world
 */
boolean bloodmoonIsRunning(World world)

/**
 * Return whether the bloodmoon is scheduled for the next night
 * @param world: world
 */
boolean bloodmoonIsScheduled(World world)


/**
 * A method to start the bloodmoon in a world
 * @param world: world
 */
void startBloodmoon(World world)


/**
 * A method to stop the bloodmoon in a world
 * @param world: world
 */
void stopBloodmoon(World world)



/**
 * A method to schedule the bloodmoon in a world
 * @param world: world
 * THIS NO LONGER WORKS AS OF VERSION 4.0
 */
 
@Deprecated
void scheduleBloodmoon(World world)


/**
 * A method to cancel the scheduled bloodmoon in a world
 * @param world: world
 */
void cancelBloodmoon(World world)
/**
 * Get a bloodmoon item
 * @param itemName: The name of the bloodmoon item you want to retrieve
 * @return The bloodmoon item
 */
ItemStack getBloodmoonItem(String itemName)
/**
 * Return whether the entity is a custom entity
 * @param entity: entity
 */
boolean isBloodmoonMob(Entity entity)

/**
 * Spawn a bloodmoon mob on a location
 * @param mobName: the name of the bloodmoon mob
 * @param location: location where to spawn the bloodmoon mob
 */
void spawnBloodmoonMob(String mobName, Location location)


/**
 * Kill all bloodmoon mobs in a specified world
 * @param world: world
 */
void killAllBloodmoonMobs(World world)
PreviousIntroduction

Last updated 4 years ago

Was this helpful?