public class GlowLeashHitch extends GlowHangingEntity implements org.bukkit.entity.LeashHitch
GlowHangingEntity.HangingFace
facing
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 |
---|
GlowLeashHitch(org.bukkit.Location location) |
GlowLeashHitch(org.bukkit.Location location,
org.bukkit.block.BlockFace clickedface)
Creates a leash hitch entity, for when a leash is hitched to a block such as a fencepost.
|
Modifier and Type | Method and Description |
---|---|
List<com.flowpowered.network.Message> |
createSpawnMessage()
Creates a list of
Message s which can be sent to a client to spawn this entity. |
boolean |
entityInteract(GlowPlayer player,
InteractEntityMessage message) |
static org.bukkit.entity.LeashHitch |
getLeashHitchAt(org.bukkit.block.Block block)
Get the Leash Hitch to which entities should be attached at the block.
|
org.bukkit.entity.EntityType |
getType() |
static boolean |
isAllowedLeashHolder(org.bukkit.entity.EntityType type)
Checks if an Entity of the specified type is allowed to be a leash holder.
|
void |
pulse()
Called every game cycle.
|
void |
setFacingDirection(org.bukkit.block.BlockFace blockFace) |
boolean |
setFacingDirection(org.bukkit.block.BlockFace blockFace,
boolean force) |
boolean |
shouldSave()
Checks whether this entity should be saved as part of the world.
|
getAttachedFace, getFacing, getYaw
addAttachment, 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, 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, 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 GlowLeashHitch(org.bukkit.Location location)
public GlowLeashHitch(org.bukkit.Location location, org.bukkit.block.BlockFace clickedface)
location
- the locationclickedface
- the side of the block that was clicked
(TODO: what difference does this make?)public static org.bukkit.entity.LeashHitch getLeashHitchAt(org.bukkit.block.Block block)
block
- the Block to get the relevant Leash Hitch forpublic static boolean isAllowedLeashHolder(org.bukkit.entity.EntityType type)
type
- type of the entity which wishes to become a leash holderpublic 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
public org.bukkit.entity.EntityType getType()
getType
in interface org.bukkit.entity.Entity
getType
in class GlowEntity
public boolean setFacingDirection(org.bukkit.block.BlockFace blockFace, boolean force)
setFacingDirection
in interface org.bukkit.entity.Hanging
public void setFacingDirection(org.bukkit.block.BlockFace blockFace)
setFacingDirection
in interface org.bukkit.material.Directional
public boolean shouldSave()
GlowEntity
shouldSave
in class GlowEntity
public void pulse()
GlowEntity
pulse
in class GlowEntity
public boolean entityInteract(GlowPlayer player, InteractEntityMessage message)
entityInteract
in class GlowEntity
Copyright © 2021. All rights reserved.