Class PortalEntitySand
java.lang.Object
me.xxastaspastaxx.dimensions.completePortal.PortalEntity
me.xxastaspastaxx.dimensions.completePortal.PortalEntitySand
The PortalEntity that sends players packets of spawning falling sand with textures of blocks
-
Constructor Summary
ConstructorDescriptionPortalEntitySand(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
Methods inherited from class me.xxastaspastaxx.dimensions.completePortal.PortalEntity
emitParticles, getLocation
-
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 entitycombinedID
- 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 classPortalEntity
- 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 classPortalEntity
- Parameters:
p
- the player to remove the block for
-
destroyBroadcast
public void destroyBroadcast()Send the destroy packets to all players- Specified by:
destroyBroadcast
in classPortalEntity
-