| Name | <NPCTag.hologram_direction> |
| Returns | ElementTag |
| Mechanism | NPCTag.hologram_direction |
| Description | Returns the direction of an NPC's hologram as "BOTTOM_UP" or "TOP_DOWN". |
| Generated Example | |
| Deprecated | This was removed from Citizens. |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/NPCTag.java#L741 |
| Name | <EntityTag.direction> |
| Returns | LocationTag |
| Mechanism | EntityTag.direction |
| Description | Returns the movement/acceleration direction of a fireball entity, as a LocationTag vector. |
| Generated Example | |
| Group | attributes |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityDirection.java#L53 |
| Name | <LocationTag.direction[(<location>)]> |
| Returns | ElementTag |
| Description | Returns the compass direction between two locations.
If no second location is specified, returns the direction of the location. Example returns include "north", "southwest", ... |
| Generated Example | |
| Group | math |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L2156 |
| Name | <LocationTag.direction.vector> |
| Returns | LocationTag |
| Description | Returns the location's direction as a one-length vector. |
| Group | math |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L2166 |
| Name | <LocationTag.direction[<location>].yaw> |
| Returns | ElementTag(Decimal) |
| Description | Returns the yaw direction between two locations. |
| Group | math |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L2183 |
| Name | <LocationTag.with_facing_direction> |
| Returns | LocationTag |
| Description | Returns the location with its direction set to the block's facing direction.
Only works for block types that have directionality (such as signs, chests, stairs, etc.). You can use <some_block_location.with_facing_direction.forward[1]> to get the block directly in front of this block (based on its facing direction). |
| Generated Example | |
| Group | world |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/LocationTag.java#L869 |
| Name | <MaterialTag.direction> |
| Returns | ElementTag |
| Mechanism | MaterialTag.direction |
| Description | Returns the current facing direction for a directional material (like a door or a bed).
This includes materials that Spigot classifies as "directional", "orientable", or "rotatable", as well as rails, dripstone, and jigsaw blocks. Output is a direction name like "NORTH", or an axis like "X", or a rail direction like "ASCENDING_NORTH". |
| Generated Example | |
| Group | properties |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialDirectional.java#L111 |
| Name | <MaterialTag.valid_directions> |
| Returns | ListTag |
| Mechanism | MaterialTag.direction |
| Description | Returns a list of directions that are valid for a directional material.
See also MaterialTag.direction |
| Generated Example | |
| Group | properties |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/material/MaterialDirectional.java#L64 |