public class GlowTntPrimed extends GlowExplosive implements org.bukkit.entity.TNTPrimed
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 |
|---|
GlowTntPrimed(org.bukkit.Location location)
Creates a primed TNT block, not associated with any igniting entity.
|
GlowTntPrimed(org.bukkit.Location location,
org.bukkit.entity.Entity source)
Creates a primed TNT block.
|
| Modifier and Type | Method and Description |
|---|---|
List<com.flowpowered.network.Message> |
createSpawnMessage()
Creates a list of
Messages which can be sent to a client to spawn this entity. |
int |
getFuseTicks() |
GlowPlayer |
getPlayer()
Get the player that ignited the TNT.
|
org.bukkit.entity.Entity |
getSource() |
org.bukkit.entity.EntityType |
getType() |
void |
pulse()
Called every game cycle.
|
void |
setFuseTicks(int fuseTicks) |
void |
setIgnitedByExplosion(boolean ignitedByExplosion)
Sets whether this TNT was ignited by an explosion or not.
|
void |
setSource(org.bukkit.entity.Entity source) |
getYield, isIncendiary, setIsIncendiary, setYieldaddAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, collide, 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, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasDefaultLandingBehavior, hasFriction, hasGravity, hashCode, hasMetadata, hasMoved, hasPermission, hasPermission, hasRotated, intersects, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isLeashed, isOnGround, isOp, isPermissionSet, isPermissionSet, isRemoved, isSilent, isTeleported, isTouchingMaterial, isValid, isWithinDistance, isWithinDistance, leaveVehicle, playEffect, playEffectKnownAndSelf, pulsePhysics, recalculatePermissions, remove, removeAttachment, removeMetadata, removePassenger, removeScoreboardTag, reset, sendMessage, sendMessage, setAirDrag, setApplyDragBeforeAccel, setBoundingBox, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setFriction, setGlowing, setGravity, setGravityAccel, setInvulnerable, 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, waitgetYield, isIncendiary, setIsIncendiary, setYieldaddPassenger, addScoreboardTag, eject, fromMobSpawner, getChunk, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getOrigin, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessage, sendMessage, sendMessagepublic GlowTntPrimed(org.bukkit.Location location)
location - the locationpublic GlowTntPrimed(org.bukkit.Location location,
org.bukkit.entity.Entity source)
location - the locationsource - the entity that ignited this; may be nullpublic GlowPlayer getPlayer()
public void setIgnitedByExplosion(boolean ignitedByExplosion)
ignitedByExplosion - whether this TNT was ignited by an explosionpublic void pulse()
GlowEntitypulse in class GlowEntitypublic 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 GlowEntitypublic final org.bukkit.entity.Entity getSource()
getSource in interface org.bukkit.entity.TNTPrimedpublic final org.bukkit.entity.EntityType getType()
getType in interface org.bukkit.entity.EntitygetType in class GlowEntitypublic int getFuseTicks()
getFuseTicks in interface org.bukkit.entity.TNTPrimedpublic void setFuseTicks(int fuseTicks)
setFuseTicks in interface org.bukkit.entity.TNTPrimedpublic void setSource(org.bukkit.entity.Entity source)
Copyright © 2021. All rights reserved.