public class GlowFallingBlock extends GlowEntity implements org.bukkit.entity.FallingBlock
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 |
---|
GlowFallingBlock(org.bukkit.Location location,
org.bukkit.Material material,
byte blockData) |
GlowFallingBlock(org.bukkit.Location location,
org.bukkit.Material material,
byte blockData,
BlockEntity blockEntity)
Creates an instance for the given entity.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canHurtEntities() |
List<com.flowpowered.network.Message> |
createSpawnMessage()
Creates a list of
Message s which can be sent to a client to spawn this entity. |
byte |
getBlockData() |
CompoundTag |
getBlockEntityCompoundTag() |
int |
getBlockId() |
boolean |
getDropItem() |
org.bukkit.Material |
getMaterial() |
org.bukkit.entity.EntityType |
getType() |
protected void |
pulsePhysics() |
void |
setBlockData(byte blockData) |
void |
setBlockEntityCompoundTag(CompoundTag blockEntityCompoundTag) |
void |
setDropItem(boolean dropItem) |
void |
setHurtEntities(boolean canHurtEntities) |
void |
setMaterial(org.bukkit.Material material) |
addAttachment, 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, pulse, 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, updateBoundingBox
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addPassenger, 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, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage, sendMessage, sendMessage
public GlowFallingBlock(org.bukkit.Location location, org.bukkit.Material material, byte blockData)
public GlowFallingBlock(org.bukkit.Location location, org.bukkit.Material material, byte blockData, BlockEntity blockEntity)
location
- the falling block's locationmaterial
- the falling block's materialblockData
- the falling block's data valueblockEntity
- the entitypublic boolean canHurtEntities()
canHurtEntities
in interface org.bukkit.entity.FallingBlock
public void setHurtEntities(boolean canHurtEntities)
setHurtEntities
in interface org.bukkit.entity.FallingBlock
public int getBlockId()
getBlockId
in interface org.bukkit.entity.FallingBlock
public boolean getDropItem()
getDropItem
in interface org.bukkit.entity.FallingBlock
public List<com.flowpowered.network.Message> createSpawnMessage()
GlowEntity
Message
s which can be sent to a client to spawn this entity.
Implementations in concrete subclasses may return a shallowly immutable list.createSpawnMessage
in class GlowEntity
protected void pulsePhysics()
pulsePhysics
in class GlowEntity
public org.bukkit.entity.EntityType getType()
getType
in interface org.bukkit.entity.Entity
getType
in class GlowEntity
public org.bukkit.Material getMaterial()
getMaterial
in interface org.bukkit.entity.FallingBlock
public void setMaterial(org.bukkit.Material material)
public void setDropItem(boolean dropItem)
setDropItem
in interface org.bukkit.entity.FallingBlock
public byte getBlockData()
getBlockData
in interface org.bukkit.entity.FallingBlock
public void setBlockData(byte blockData)
public CompoundTag getBlockEntityCompoundTag()
public void setBlockEntityCompoundTag(CompoundTag blockEntityCompoundTag)
Copyright © 2021. All rights reserved.