Class PortalEntitySand

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

public class PortalEntitySand extends PortalEntity
The PortalEntity that sends players packets of spawning falling sand with textures of blocks
  • Constructor Summary

    Constructors
    Constructor
    Description
    PortalEntitySand​(org.bukkit.Location location, int combinedID)
    Construct the PortalEntity and create all the packets to summon, retexture, teleport and destroy the falling block
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    destroy​(org.bukkit.entity.Player p)
    Send the destroy packets to the player
    void
    Send the destroy packets to all players
    void
    summon​(org.bukkit.entity.Player p)
    Send the spawn packets 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

    • PortalEntitySand

      public PortalEntitySand(org.bukkit.Location location, int combinedID)
      Construct the PortalEntity and create all the packets to summon, retexture, teleport and destroy the falling block
      Parameters:
      location - the location to summon the entity
      combinedID - the combinedID of the texture
  • Method Details

    • summon

      public void summon(org.bukkit.entity.Player p)
      Send the spawn packets 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 the destroy packets to the player
      Specified by:
      destroy in class PortalEntity
      Parameters:
      p - the player to remove the block for
    • destroyBroadcast

      public void destroyBroadcast()
      Send the destroy packets to all players
      Specified by:
      destroyBroadcast in class PortalEntity