public class GlowItemFrame extends GlowHangingEntity implements org.bukkit.entity.ItemFrame
GlowHangingEntity.HangingFacefacingactive, 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 |
|---|
GlowItemFrame(GlowPlayer player,
org.bukkit.Location location,
org.bukkit.block.BlockFace facing)
Creates an item frame entity, and consumes the item frame item if a player is hanging it.
|
| 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. |
boolean |
entityInteract(GlowPlayer player,
InteractEntityMessage message) |
org.bukkit.inventory.ItemStack |
getItem() |
org.bukkit.Rotation |
getRotation() |
org.bukkit.entity.EntityType |
getType() |
boolean |
isEmpty() |
void |
pulse()
Called every game cycle.
|
protected void |
pulsePhysics() |
void |
setFacingDirection(org.bukkit.block.BlockFace blockface) |
boolean |
setFacingDirection(org.bukkit.block.BlockFace blockface,
boolean force) |
void |
setItem(org.bukkit.inventory.ItemStack is) |
void |
setRotation(org.bukkit.Rotation rotation) |
getAttachedFace, getFacing, getYawaddAttachment, addAttachment, addAttachment, addAttachment, addPassenger, addScoreboardTag, collide, createAfterSpawnMessage, createUpdateMessage, damage, damage, damage, damage, eject, equals, fromMobSpawner, getCardinalFacing, getChunk, getCustomName, getCustomTags, getDismountLocation, getEffectivePermissions, getEntityId, 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, isGlowing, isInsideVehicle, isInvulnerable, isLeashed, isOnGround, isOp, isPermissionSet, isPermissionSet, isRemoved, isSilent, isTeleported, isTouchingMaterial, isValid, isWithinDistance, isWithinDistance, leaveVehicle, playEffect, playEffectKnownAndSelf, 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, waitaddPassenger, 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, 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 GlowItemFrame(GlowPlayer player, org.bukkit.Location location, org.bukkit.block.BlockFace facing)
player - the player who is hanging this item frame if it was an item before, or null if
it wasn't (e.g. it's from the saved world or a /summon command)location - the item frame's locationfacing - the direction this item frame is facingpublic boolean entityInteract(GlowPlayer player, InteractEntityMessage message)
entityInteract in class GlowEntitypublic void pulse()
GlowEntitypulse in class GlowEntityprotected void pulsePhysics()
pulsePhysics 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 boolean isEmpty()
isEmpty in interface org.bukkit.entity.EntityisEmpty in class GlowEntitypublic org.bukkit.entity.EntityType getType()
getType in interface org.bukkit.entity.EntitygetType in class GlowEntitypublic org.bukkit.inventory.ItemStack getItem()
getItem in interface org.bukkit.entity.ItemFramepublic void setItem(org.bukkit.inventory.ItemStack is)
setItem in interface org.bukkit.entity.ItemFramepublic boolean setFacingDirection(org.bukkit.block.BlockFace blockface,
boolean force)
setFacingDirection in interface org.bukkit.entity.Hangingpublic void setFacingDirection(org.bukkit.block.BlockFace blockface)
setFacingDirection in interface org.bukkit.material.Directionalpublic org.bukkit.Rotation getRotation()
getRotation in interface org.bukkit.entity.ItemFramepublic void setRotation(org.bukkit.Rotation rotation)
setRotation in interface org.bukkit.entity.ItemFrameCopyright © 2021. All rights reserved.