Interface ParticleSupport


public interface ParticleSupport
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
    getForVersion(String v18, String v19, String V12, String V13)
    Get the right particle for current server version.
    default boolean
    Check if the given string is a particle.
    default void
    spawnParticle(org.bukkit.World w, float x, float y, float z, String particle)
    Spawn a particle at the given location.
    default void
    spawnParticle(org.bukkit.World w, String particle, float x, float y, float z, int offsetX, int offsetY, int offsetZ, int speed, int amount)
    Spawn particles at the given location in the given box (offsets).
    default void
    spawnRedstoneParticle(org.bukkit.World w, float x, float y, float z, int offsetX, int offsetY, int offsetZ, int speed, int color)
    Spawn a red stone particle at the given location in the given box (offsets).
  • Method Details

    • isParticle

      default boolean isParticle(String name)
      Check if the given string is a particle.
      Parameters:
      name - particle name.
      Returns:
      true if given name is an existing particle.
    • spawnParticle

      default void spawnParticle(org.bukkit.World w, float x, float y, float z, String particle)
      Spawn a particle at the given location.
      Parameters:
      particle - particle by name.
    • spawnParticle

      default void spawnParticle(org.bukkit.World w, String particle, float x, float y, float z, int offsetX, int offsetY, int offsetZ, int speed, int amount)
      Spawn particles at the given location in the given box (offsets).
      Parameters:
      speed - movement speed.
      amount - particles amount. Some particles uses this param as color.
    • spawnRedstoneParticle

      default void spawnRedstoneParticle(org.bukkit.World w, float x, float y, float z, int offsetX, int offsetY, int offsetZ, int speed, int color)
      Spawn a red stone particle at the given location in the given box (offsets).
      Parameters:
      speed - movement speed.
      color - red stone color.
    • getForVersion

      default String getForVersion(String v18, String v19, String V12, String V13)
      Get the right particle for current server version.
      Parameters:
      v18 - particle by name for 1.8 server.
      v19 - particle by name for 1.9 server.
      V12 - particle by name for [1.10, 1.12]
      V13 - particle by name for 1.13 and newer.