public interface Hanging extends Entity, Attachable
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
setFacingDirection(BlockFace face,
boolean force)
设置悬挂实体的方向,这可能会重写所有规则.
|
addPassenger, addScoreboardTag, eject, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, 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, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessageaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOpgetCustomName, setCustomNamegetAttachedFacegetFacing, setFacingDirectionboolean setFacingDirection(BlockFace face, boolean force)
原文:Sets the direction of the hanging entity, potentially overriding rules of placement. Note that if the result is not valid the object would normally drop as an item.
face - 新的方向force - 是否强制