java.lang.Object
com.github.fierioziy.particlenativeapi.core.asm.utils.ParticleNode

public class ParticleNode extends Object

A node used by ParticleRegistry to represent current particle name in certain Spigot version using SpigotParticleVersion enum.

A ParticleNode has a structure similar to node in doubly linked list that consist of reference to previous node and next node.

It is used to find particle name in target Spigot version using particle name in current Spigot version.

  • Method Details

    • isBound

      public boolean isBound(ParticleNode node)
    • getVersion

      public SpigotParticleVersion getVersion()

      Gets Spigot version from this node.

      Returns:
      a SpigotParticleVersion enum representing Spigot version of this node.
    • getName

      public String getName()

      Gets particle name in this Spigot version.

      Returns:
      a particle name.
    • isRemoved

      public boolean isRemoved()

      Checks if particle does not exists in this Spigot version.

      Returns:
      true if particle does not exists in this Spigot version, false otherwise.