public abstract class GlowProjectile extends GlowEntity implements org.bukkit.entity.Projectile
GlowEntity.setBoundingBox(double, double) if they are to collide
with other entities.active, airDrag, applyDragBeforeAccel, boundingBox, ENTITY_ID_NOBODY, entityId, gravityAccel, liquidDrag, location, metadata, passengerChanged, previousLocation, removed, server, slipMultiplier, teleported, ticksLived, vehicle, velocity, velocityChanged, world, worldLock| Constructor and Description |
|---|
GlowProjectile(org.bukkit.Location location)
Creates a projectile.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
collide(org.bukkit.block.Block block)
Collide with the target block.
|
abstract void |
collide(org.bukkit.entity.LivingEntity entity) |
List<com.flowpowered.network.Message> |
createSpawnMessage()
Creates a list of
Messages which can be sent to a client to spawn this entity. |
boolean |
doesBounce() |
protected abstract int |
getObjectId() |
org.bukkit.projectiles.ProjectileSource |
getShooter() |
protected boolean |
hasDefaultLandingBehavior()
If true,
GlowEntity.setRawLocation(Location, boolean) with fall true will call
GlowEntity.setOnGround(boolean) according to whether or not our location is inside a solid
block. |
boolean |
isGlowing() |
boolean |
isInvulnerable()
Whether this entity is invulnerable.
|
protected void |
pulsePhysics() |
void |
setBounce(boolean bounce) |
void |
setGlowing(boolean glowing) |
void |
setInvulnerable(boolean invulnerable)
Whether this entity is invulnerable.
|
void |
setShooter(org.bukkit.projectiles.ProjectileSource shooter) |
addAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, createAfterSpawnMessage, createUpdateMessage, damage, damage, damage, damage, eject, entityInteract, equals, fromMobSpawner, getCardinalFacing, getChunk, getCustomName, getCustomTags, getDismountLocation, getEffectivePermissions, getEntityId, getFacing, getFallDistance, getFireTicks, getGravityAccel, getHeight, getLastDamageCause, getLeashedEntities, getLeashHolder, getLocation, getLocation, getMaxFireTicks, getMetadata, getMetadata, getMountLocation, getName, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasPermission, hasPermission, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isInsideVehicle, isLeashed, isOnGround, isOp, isPermissionSet, isPermissionSet, isRemoved, isSilent, isTeleported, isTouchingMaterial, isValid, isWithinDistance, isWithinDistance, leaveVehicle, playEffect, playEffectKnownAndSelf, pulse, recalculatePermissions, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, reset, sendMessage, sendMessage, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFriction, setGravity, setGravityAccel, setLastDamageCause, setLeashHolder, setLeashHolderUniqueId, setLiquidDrag, setMetadata, setOnGround, setOp, setPassenger, setPortalCooldown, setRawLocation, setRawLocation, setSilent, setSize, setTicksLived, setUniqueId, setVelocity, shouldSave, spigot, teleport, teleport, teleport, teleport, teleportToEnd, teleportToSpawn, toString, updateBoundingBoxclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddPassenger, addScoreboardTag, eject, fromMobSpawner, getChunk, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isInsideVehicle, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGravity, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessage, sendMessage, sendMessagepublic GlowProjectile(org.bukkit.Location location)
location - the initial locationpublic List<com.flowpowered.network.Message> createSpawnMessage()
GlowEntityMessages which can be sent to a client to spawn this entity.
Implementations in concrete subclasses may return a shallowly immutable list.createSpawnMessage in class GlowEntityprotected void pulsePhysics()
pulsePhysics in class GlowEntityprotected boolean hasDefaultLandingBehavior()
GlowEntityGlowEntity.setRawLocation(Location, boolean) with fall true will call
GlowEntity.setOnGround(boolean) according to whether or not our location is inside a solid
block.hasDefaultLandingBehavior in class GlowEntityGlowEntity.setOnGround(boolean) from GlowEntity.setRawLocation(Location,
boolean); false otherwisepublic abstract void collide(org.bukkit.block.Block block)
GlowEntitycollide in class GlowEntityblock - a block whose type Material.isOccluding()public abstract void collide(org.bukkit.entity.LivingEntity entity)
protected abstract int getObjectId()
public boolean doesBounce()
doesBounce in interface org.bukkit.entity.Projectilepublic boolean isGlowing()
isGlowing in interface org.bukkit.entity.EntityisGlowing in class GlowEntitypublic void setGlowing(boolean glowing)
setGlowing in interface org.bukkit.entity.EntitysetGlowing in class GlowEntitypublic boolean isInvulnerable()
GlowEntityisInvulnerable in interface org.bukkit.entity.EntityisInvulnerable in class GlowEntitypublic void setInvulnerable(boolean invulnerable)
GlowEntitysetInvulnerable in interface org.bukkit.entity.EntitysetInvulnerable in class GlowEntitypublic org.bukkit.projectiles.ProjectileSource getShooter()
getShooter in interface org.bukkit.entity.Projectilepublic void setShooter(org.bukkit.projectiles.ProjectileSource shooter)
setShooter in interface org.bukkit.entity.Projectilepublic void setBounce(boolean bounce)
setBounce in interface org.bukkit.entity.ProjectileCopyright © 2021. All rights reserved.