Class ParticlePortal

All Implemented Interfaces:
IParticle

public class ParticlePortal extends TravellingParticle
  • Constructor Details

    • ParticlePortal

      public ParticlePortal(org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ, int count)
    • ParticlePortal

      public ParticlePortal(org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ, int count)
    • ParticlePortal

      public ParticlePortal(org.bukkit.Location toGo, double offsetX, double offsetY, double offsetZ)
    • ParticlePortal

      public ParticlePortal(org.bukkit.util.Vector velocity, double offsetX, double offsetY, double offsetZ)
    • ParticlePortal

      public ParticlePortal(double offsetX, double offsetY, double offsetZ, int count)
    • ParticlePortal

      public ParticlePortal(double offsetX, double offsetY, double offsetZ)
    • ParticlePortal

      public ParticlePortal(int count)
    • ParticlePortal

      public ParticlePortal(org.bukkit.Location toGo)
    • ParticlePortal

      public ParticlePortal(org.bukkit.util.Vector velocity)
    • ParticlePortal

      public ParticlePortal()
  • Method Details

    • inherit

      public ParticlePortal inherit(Particle particle)
      Specified by:
      inherit in interface IParticle
      Overrides:
      inherit in class TravellingParticle
      Parameters:
      particle - particle for this object to copy data from
      Returns:
      this object
    • clone

      public ParticlePortal clone()
      Specified by:
      clone in interface IParticle
      Specified by:
      clone in class TravellingParticle
    • getOffsets

      protected org.bukkit.util.Vector getOffsets(org.bukkit.Location location)
      Description copied from class: Particle
      Meant to be overridden by child classes to modify the offset values of the packet sent to the player.
      Overrides:
      getOffsets in class TravellingParticle
      Parameters:
      location - the location passed into the display method
      Returns:
      the offsetHelper with the modified offset values
    • setInverse

      public ParticlePortal setInverse(boolean inverse)
      Parameters:
      inverse - whether this class uses REVERSE_PORTAL or PORTAL, default false (REVERSE_PORTAL)
    • isInverse

      public boolean isInverse()
      Returns:
      whether this class uses REVERSE_PORTAL or PORTAL, default false (REVERSE_PORTAL)