Class PortalEntity

java.lang.Object
me.xxastaspastaxx.dimensions.completePortal.PortalEntity
Direct Known Subclasses:
PortalEntitySand, PortalEntitySolid

public abstract class PortalEntity extends Object
Represents one block inside the portal that is going to place a block or summon a fake block
  • Constructor Summary

    Constructors
    Constructor
    Description
    PortalEntity​(org.bukkit.Location location)
    Constructor of PortalEntity
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    destroy​(org.bukkit.entity.Player p)
    Remove the block
    abstract void
    Remove the block for all players
    void
    emitParticles​(org.bukkit.Color color)
    Make the portal emit particles
    org.bukkit.Location
    Get the location of the PortalEntity
    abstract void
    summon​(org.bukkit.entity.Player p)
    Place the block

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PortalEntity

      public PortalEntity(org.bukkit.Location location)
      Constructor of PortalEntity
      Parameters:
      location - the location to place the block
  • Method Details

    • summon

      public abstract void summon(org.bukkit.entity.Player p)
      Place the block
      Parameters:
      p - the player to show the block
    • destroy

      public abstract void destroy(org.bukkit.entity.Player p)
      Remove the block
      Parameters:
      p - the player to remove the block for
    • destroyBroadcast

      public abstract void destroyBroadcast()
      Remove the block for all players
    • emitParticles

      public void emitParticles(org.bukkit.Color color)
      Make the portal emit particles
      Parameters:
      color - the color of the particle
    • getLocation

      public org.bukkit.Location getLocation()
      Get the location of the PortalEntity
      Returns:
      the location of the PortalEntity