Class PortalEntitySolid

java.lang.Object
me.xxastaspastaxx.dimensions.completePortal.PortalEntity
me.xxastaspastaxx.dimensions.completePortal.PortalEntitySolid

public class PortalEntitySolid extends PortalEntity
PortalEntity class for blocks that are not solid and dont have to be spawned as falling blocks
  • Constructor Summary

    Constructors
    Constructor
    Description
    PortalEntitySolid​(org.bukkit.Location location, org.bukkit.block.data.BlockData blockData)
    Construct PortalEntity with the blockData to place
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    destroy​(org.bukkit.entity.Player p)
    Send block change (air) to the player
    void
    Send block change (air) to all players
    void
    summon​(org.bukkit.entity.Player p)
    Send block change (block data) to the player

    Methods inherited from class me.xxastaspastaxx.dimensions.completePortal.PortalEntity

    emitParticles, getLocation

    Methods inherited from class java.lang.Object

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

    • PortalEntitySolid

      public PortalEntitySolid(org.bukkit.Location location, org.bukkit.block.data.BlockData blockData)
      Construct PortalEntity with the blockData to place
      Parameters:
      location - the location of the block
      blockData - the block data to place
  • Method Details

    • summon

      public void summon(org.bukkit.entity.Player p)
      Send block change (block data) to the player
      Specified by:
      summon in class PortalEntity
      Parameters:
      p - the player to show the block
    • destroy

      public void destroy(org.bukkit.entity.Player p)
      Send block change (air) to the player
      Specified by:
      destroy in class PortalEntity
      Parameters:
      p - the player to remove the block for
    • destroyBroadcast

      public void destroyBroadcast()
      Send block change (air) to all players
      Specified by:
      destroyBroadcast in class PortalEntity