Class PortalEntity
java.lang.Object
me.xxastaspastaxx.dimensions.completePortal.PortalEntity
- Direct Known Subclasses:
PortalEntitySand,PortalEntitySolid
Represents one block inside the portal that is going to place a block or summon a fake block
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddestroy(org.bukkit.entity.Player p)Remove the blockabstract voidRemove the block for all playersvoidemitParticles(org.bukkit.Color color)Make the portal emit particlesorg.bukkit.LocationGet the location of the PortalEntityabstract voidsummon(org.bukkit.entity.Player p)Place the block
-
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
-