# UniversalBlockStateHelper

`com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper`

**Since:** 1.8.4

Provides typed accessors for common block-state properties. Unlike
[StateHelper.toMap()](StateHelper.md#com.jsmacrosce.jsmacros.client.api.helper.world.StateHelper_toMap-), which returns property values as names, these accessors return
values such as directions and numbers in their typed form. Accessing a property absent from the
state throws. The level, distance, and age accessors try supported properties in order and throw
if none is present. Obtain this helper from [BlockStateHelper.getUniversal()](BlockStateHelper.md#com.jsmacrosce.jsmacros.client.api.helper.world.BlockStateHelper_getUniversal-).  
```js
// Compare a typed direction with the map's property-name value.  
const reg = Client.getRegistryManager();  
const state = reg.getBlockState("minecraft:oak_stairs", "[facing=east,half=bottom]");  
const universal = state.getUniversal();  

Chat.log(universal.getHorizontalFacing().getName());   // a direction
Chat.log(universal.getBlockHalf());                    // a word
Chat.log(universal.isWaterlogged());                    // a boolean

for (const [name, value] of state.toMap()) {
  Chat.log(`${name} is ${value}`);                      // every property, as names
}

// Accessing an absent property throws.  
try {
  universal.getHoneyLevel();  
} catch (e) {
  Chat.log("a stair has no honey level");  
}

// Numeric families try their supported properties in order.  
const wheat = reg.getBlockState("minecraft:wheat").getUniversal();  
Chat.log(`age ${wheat.getAge()} of ${wheat.getMaxAge()}`);  
```

## Constructors

### new UniversalBlockStateHelper {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_constructor-BlockState-}

```js
new UniversalBlockStateHelper(BlockState base)
```

Wraps the supplied block-state reference.

**Parameters:**
- `base`: non-null block state to wrap

## Methods

### canSummon {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_canSummon-}

```js
canSummon(): boolean
```

**Returns:** whether this sculk sensor can summon.

**Since:** 1.8.4

### getAge {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getAge-}

```js
getAge(): int
```

Returns the value of the first present property in the helper's configured order: `AGE_1`,  
`AGE_2`, `AGE_3`, `AGE_4`, `AGE_5`, `AGE_7`, `AGE_15`,  
then `AGE_25`. No scaling is applied between properties.

**Returns:** the value of the first present age property.

**Since:** 1.8.4

### getAttachment {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getAttachment-}

```js
getAttachment(): String
```

**Returns:** the `BELL_ATTACHMENT` property's value, as the name the game gives it.

**Since:** 1.8.4

### getAxis {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getAxis-}

```js
getAxis(): String
```

**Returns:** the name of the `AXIS` property's value.

**Since:** 1.8.4

### getBambooLeaves {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getBambooLeaves-}

```js
getBambooLeaves(): String
```

**Returns:** the serialized name of the `BAMBOO_LEAVES` property.

**Since:** 1.8.4

### getBedPart {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getBedPart-}

```js
getBedPart(): String
```

**Returns:** the serialized name of the `BED_PART` property's value.

**Since:** 1.8.4

### getBites {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getBites-}

```js
getBites(): int
```

**Returns:** the `BITES` property's value.

**Since:** 1.8.4

### getBlockFace {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getBlockFace-}

```js
getBlockFace(): String
```

**Returns:** the attachment face's serialized name.

**Since:** 1.9.0

### getBlockHalf {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getBlockHalf-}

```js
getBlockHalf(): String
```

**Returns:** the serialized value of the `HALF` property.

**Since:** 1.8.4

### getCandles {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getCandles-}

```js
getCandles(): int
```

**Returns:** the `CANDLES` property's value.

**Since:** 1.8.4

### getCharges {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getCharges-}

```js
getCharges(): int
```

**Returns:** the respawn anchor's charge count.

**Since:** 1.8.4

### getChestType {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getChestType-}

```js
getChestType(): String
```

**Returns:** the serialized name of the `CHEST_TYPE` property.

**Since:** 1.8.4

### getComparatorMode {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getComparatorMode-}

```js
getComparatorMode(): String
```

**Returns:** the serialized name of the `MODE_COMPARATOR` property.

**Since:** 1.8.4

### getDelay {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getDelay-}

```js
getDelay(): int
```

Returns the state's `DELAY` property.

**Returns:** the `DELAY` property's value.

**Since:** 1.8.4

### getDistance {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getDistance-}

```js
getDistance(): int
```

Returns the first present property in order: `STABILITY_DISTANCE`, then
`DISTANCE`. Throws if neither property is present.

**Returns:** the distance of this state, from the first of the game's distance properties it has.

**Since:** 1.8.4

### getDoorHinge {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getDoorHinge-}

```js
getDoorHinge(): String
```

Returns the door hinge's serialized name: `left` or `right`.  
```js
// which side a door is hinged on
const door = Client.getRegistryManager()
  .getBlockState("minecraft:oak_door", "[hinge=left,open=true]").getUniversal();  
Chat.log(`hinge ${door.getDoorHinge()}, open ${door.isOpen()}`);  
```

**Returns:** the serialized name of the `DOOR_HINGE` property's value

**Since:** 1.8.4

### getDoubleBlockHalf {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getDoubleBlockHalf-}

```js
getDoubleBlockHalf(): String
```

**Returns:** the serialized value of the `DOUBLE_BLOCK_HALF` property.

**Since:** 1.8.4

### getDusted {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getDusted-}

```js
getDusted(): int
```

**Returns:** the copper bulb's oxidation level.

**Since:** 1.9.0

### getEastWallShape {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getEastWallShape-}

```js
getEastWallShape(): String
```

**Returns:** the `EAST_WALL` property's value, as the name the game gives it.

**Since:** 1.8.4

### getEastWireConnection {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getEastWireConnection-}

```js
getEastWireConnection(): String
```

**Returns:** the `EAST_REDSTONE` property's value, as the name the game gives it.

**Since:** 1.8.4

### getEggs {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getEggs-}

```js
getEggs(): int
```

**Returns:** the `EGGS` property's value.

**Since:** 1.8.4

### getFacing {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getFacing-}

```js
getFacing(): DirectionHelper
```

**Returns:** the value of the `FACING` property as a direction.

**Since:** 1.8.4

### getFlowerAmount {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getFlowerAmount-}

```js
getFlowerAmount(): int
```

**Returns:** the flower bed's flower count.

**Since:** 1.9.0

### getHatched {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getHatched-}

```js
getHatched(): int
```

**Returns:** the `HATCH` property's value.

**Since:** 1.8.4

### getHoneyLevel {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getHoneyLevel-}

```js
getHoneyLevel(): int
```

**Returns:** the value of the `LEVEL_HONEY` property (0–5).

**Since:** 1.8.4

### getHopperFacing {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getHopperFacing-}

```js
getHopperFacing(): DirectionHelper
```

**Returns:** the value of the `FACING_HOPPER` property as a direction.

**Since:** 1.8.4

### getHorizontalAxis {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getHorizontalAxis-}

```js
getHorizontalAxis(): String
```

**Returns:** the serialized value of the `HORIZONTAL_AXIS` property.

**Since:** 1.8.4

### getHorizontalFacing {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getHorizontalFacing-}

```js
getHorizontalFacing(): DirectionHelper
```

**Returns:** the value of the `HORIZONTAL_FACING` property as a direction.

**Since:** 1.8.4

### getInstrument {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getInstrument-}

```js
getInstrument(): String
```

Returns the note-block instrument's serialized name, such as `harp` or `bell`.  
```js
// what a note block is set to
const reg = Client.getRegistryManager();  
for (const name of ["harp", "basedrum", "snare", "hat", "guitar", "bell", "chime"]) {
  const note = reg.getBlockState("minecraft:note_block", `[instrument=${name}]`).getUniversal();  
  Chat.log(`${note.getInstrument()} is note ${note.getNote()}`);  
}
```

**Returns:** the serialized name of the `NOTEBLOCK_INSTRUMENT` property's value

**Since:** 1.8.4

### getLayers {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getLayers-}

```js
getLayers(): int
```

**Returns:** the `LAYERS` property's value.

**Since:** 1.8.4

### getLevel {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getLevel-}

```js
getLevel(): int
```

Returns the value of the first present level property, checking flowing-fluid, cauldron,  
composter, then generic level.  
```js
// the level of a fluid, and the same number through the property map
const reg = Client.getRegistryManager();  
const water = reg.getFluidState("minecraft:water").getBlockState().getUniversal();  
Chat.log(`level ${water.getLevel()}, between ${water.getMinLevel()} and ${water.getMaxLevel()}`);  

// and a block with no level property at all
try {
  reg.getBlockState("minecraft:stone").getUniversal().getLevel();  
} catch (e) {
  Chat.log("stone has no level");  
}
```

**Returns:** the value of the first present level property.

**Since:** 1.8.4

### getMaxAge {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getMaxAge-}

```js
getMaxAge(): int
```

Returns the maximum possible value of the first present age property, using the same property
order as [getAge()](#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getAge-).

**Returns:** the maximum possible value of the first present age property.

**Since:** 1.8.4

### getMaxDistance {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getMaxDistance-}

```js
getMaxDistance(): int
```

Returns the maximum possible value of the first present distance property, in the order
described by [getDistance()](#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getDistance-).

**Returns:** the largest value the distance property this state has can hold.

**Since:** 1.8.4

### getMaxLevel {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getMaxLevel-}

```js
getMaxLevel(): int
```

Returns the greatest allowed value of the first present level property, checking the same
properties in the same order as [getLevel()](#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getLevel-).  
```js
// the range a level can take here
const lava = Client.getRegistryManager().getFluidState("minecraft:lava")
  .getBlockState().getUniversal();  
Chat.log(`${lava.getMinLevel()} to ${lava.getMaxLevel()}`);  
```

**Returns:** the greatest allowed value of the first present level property.

**Since:** 1.8.4

### getMinDistance {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getMinDistance-}

```js
getMinDistance(): int
```

Returns the minimum possible value of the first present distance property, in the order
described by [getDistance()](#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getDistance-).

**Returns:** the smallest value the distance property this state has can hold.

**Since:** 1.8.4

### getMinLevel {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getMinLevel-}

```js
getMinLevel(): int
```

Returns the smallest allowed value of the first present level property, using the same
property order as [getLevel()](#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getLevel-).

**Returns:** the smallest value the level property this state has can hold.

**Since:** 1.8.4

### getMoisture {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getMoisture-}

```js
getMoisture(): int
```

**Returns:** the `MOISTURE` property's value.

**Since:** 1.8.4

### getNorthWallShape {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getNorthWallShape-}

```js
getNorthWallShape(): String
```

**Returns:** the `NORTH_WALL` property's value, as the name the game gives it.

**Since:** 1.8.4

### getNorthWireConnection {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getNorthWireConnection-}

```js
getNorthWireConnection(): String
```

**Returns:** the `NORTH_REDSTONE` property's value, as the name the game gives it.

**Since:** 1.8.4

### getNote {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getNote-}

```js
getNote(): int
```

**Returns:** the `NOTE` property's value.

**Since:** 1.8.4

### getOrientation {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getOrientation-}

```js
getOrientation(): String
```

**Returns:** the serialized value of the `ORIENTATION` property.

**Since:** 1.8.4

### getPickles {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getPickles-}

```js
getPickles(): int
```

**Returns:** the `PICKLES` property's value.

**Since:** 1.8.4

### getPistonType {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getPistonType-}

```js
getPistonType(): String
```

Returns the piston-head type's serialized name: `normal` or `sticky`.  
```js
// sticky and not
for (const type of ["normal", "sticky"]) {
  const piston = Client.getRegistryManager()
    .getBlockState("minecraft:piston_head", `[type=${type},facing=up]`).getUniversal();  
  Chat.log(`${piston.getPistonType()}, facing ${piston.getFacing().getName()}`);  
}
```

**Returns:** the serialized name of the `PISTON_TYPE` property's value

**Since:** 1.8.4

### getPower {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getPower-}

```js
getPower(): int
```

**Returns:** the `POWER` property's value.

**Since:** 1.8.4

### getRailShape {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getRailShape-}

```js
getRailShape(): String
```

**Returns:** the serialized value of the `RAIL_SHAPE` property.

**Since:** 1.8.4

### getRotation {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getRotation-}

```js
getRotation(): int
```

**Returns:** the block's rotation in one of 16 steps.

**Since:** 1.8.4

### getSculkSensorPhase {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getSculkSensorPhase-}

```js
getSculkSensorPhase(): String
```

**Returns:** the sculk sensor phase's serialized name.

**Since:** 1.8.4

### getSlabType {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getSlabType-}

```js
getSlabType(): String
```

**Returns:** the serialized name of the `SLAB_TYPE` property's value.

**Since:** 1.8.4

### getSouthWallShape {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getSouthWallShape-}

```js
getSouthWallShape(): String
```

**Returns:** the `SOUTH_WALL` property's value, as the name the game gives it.

**Since:** 1.8.4

### getSouthWireConnection {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getSouthWireConnection-}

```js
getSouthWireConnection(): String
```

**Returns:** the `SOUTH_REDSTONE` property's value, as the name the game gives it.

**Since:** 1.8.4

### getStage {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getStage-}

```js
getStage(): int
```

**Returns:** the `STAGE` property's value.

**Since:** 1.8.4

### getStairShape {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getStairShape-}

```js
getStairShape(): String
```

Returns the stair shape's serialized name: `straight`, `inner_left`,  
`inner_right`, `outer_left`, or `outer_right`.  
```js
// the five shapes a stair can be
for (const shape of ["straight", "inner_left", "inner_right", "outer_left", "outer_right"]) {
  const stair = Client.getRegistryManager()
    .getBlockState("minecraft:oak_stairs", `[shape=${shape}]`).getUniversal();  
  Chat.log(`${stair.getStairShape()}, half ${stair.getBlockHalf()}`);  
}
```

**Returns:** the serialized name of the `STAIRS_SHAPE` property's value

**Since:** 1.8.4

### getStraightRailShape {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getStraightRailShape-}

```js
getStraightRailShape(): String
```

**Returns:** the serialized value of the `RAIL_SHAPE_STRAIGHT` property.

**Since:** 1.8.4

### getStructureBlockMode {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getStructureBlockMode-}

```js
getStructureBlockMode(): String
```

**Returns:** the serialized name of the `STRUCTUREBLOCK_MODE` property.

**Since:** 1.8.4

### getThickness {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getThickness-}

```js
getThickness(): String
```

**Returns:** the serialized name of the `DRIPSTONE_THICKNESS`/`SPELEOTHEM_THICKNESS` property.

**Since:** 1.8.4

### getTilt {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getTilt-}

```js
getTilt(): String
```

**Returns:** the serialized name of the `TILT` property.

**Since:** 1.8.4

### getTrialSpawnerState {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getTrialSpawnerState-}

```js
getTrialSpawnerState(): String
```

**Returns:** the trial spawner state's serialized name.

**Since:** 2.1.0

### getVaultState {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getVaultState-}

```js
getVaultState(): String
```

**Returns:** the vault state's serialized name.

**Since:** 2.1.0

### getVerticalDirection {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getVerticalDirection-}

```js
getVerticalDirection(): String
```

**Returns:** the serialized name of the `VERTICAL_DIRECTION` property.

**Since:** 1.8.4

### getWestWallShape {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getWestWallShape-}

```js
getWestWallShape(): String
```

**Returns:** the `WEST_WALL` property's value, as the name the game gives it.

**Since:** 1.8.4

### getWestWireConnection {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_getWestWireConnection-}

```js
getWestWireConnection(): String
```

**Returns:** the `WEST_REDSTONE` property's value, as the name the game gives it.

**Since:** 1.8.4

### hasBerries {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_hasBerries-}

```js
hasBerries(): boolean
```

**Returns:** the `BERRIES` property's value.

**Since:** 1.8.4

### hasBook {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_hasBook-}

```js
hasBook(): boolean
```

Returns the state's `HAS_BOOK` property.

**Returns:** whether the state's `HAS_BOOK` property is true

**Since:** 1.8.4

### hasBottle0 {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_hasBottle0-}

```js
hasBottle0(): boolean
```

Returns the state's `HAS_BOTTLE_0` property.

**Returns:** whether the state's `HAS_BOTTLE_0` property is true

**Since:** 1.8.4

### hasBottle1 {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_hasBottle1-}

```js
hasBottle1(): boolean
```

Returns the state's `HAS_BOTTLE_1` property.

**Returns:** whether the state's `HAS_BOTTLE_1` property is true

**Since:** 1.8.4

### hasBottle2 {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_hasBottle2-}

```js
hasBottle2(): boolean
```

Returns the state's `HAS_BOTTLE_2` property.

**Returns:** whether the state's `HAS_BOTTLE_2` property is true

**Since:** 1.8.4

### hasEye {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_hasEye-}

```js
hasEye(): boolean
```

**Returns:** the `EYE` property's value; present on end portal frames.

**Since:** 1.8.4

### hasRecord {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_hasRecord-}

```js
hasRecord(): boolean
```

Returns the state's `HAS_RECORD` property.

**Returns:** whether the state's `HAS_RECORD` property is true

**Since:** 1.8.4

### isAttached {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isAttached-}

```js
isAttached(): boolean
```

**Returns:** the `ATTACHED` property's value; present on tripwire hooks.

**Since:** 1.8.4

### isBloom {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isBloom-}

```js
isBloom(): boolean
```

**Returns:** whether this block state has bloom enabled.

**Since:** 1.8.4

### isBottom {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isBottom-}

```js
isBottom(): boolean
```

**Returns:** whether the state's `BOTTOM` property is true.

**Since:** 1.8.4

### isBubbleColumnDown {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isBubbleColumnDown-}

```js
isBubbleColumnDown(): boolean
```

**Returns:** the `DRAG` property value; `true` indicates downward bubble-column motion.

**Since:** 1.8.4

### isBubbleColumnUp {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isBubbleColumnUp-}

```js
isBubbleColumnUp(): boolean
```

**Returns:** the negation of the `DRAG` property; `true` indicates upward bubble-column motion.

**Since:** 1.8.4

### isConditional {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isConditional-}

```js
isConditional(): boolean
```

**Returns:** the `CONDITIONAL` property's value; present on command blocks.

**Since:** 1.8.4

### isCracked {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isCracked-}

```js
isCracked(): boolean
```

**Returns:** whether the decorated pot is cracked.

**Since:** 1.9.0

### isCrafting {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isCrafting-}

```js
isCrafting(): boolean
```

**Returns:** whether the crafter is crafting.

**Since:** 2.1.0

### isDisarmed {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isDisarmed-}

```js
isDisarmed(): boolean
```

**Returns:** the `DISARMED` property's value; present on tripwire.

**Since:** 1.8.4

### isDown {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isDown-}

```js
isDown(): boolean
```

**Returns:** whether the state's `DOWN` property is true.

**Since:** 1.8.4

### isEast {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isEast-}

```js
isEast(): boolean
```

**Returns:** whether the state's `EAST` property is true.

**Since:** 1.8.4

### isEnabled {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isEnabled-}

```js
isEnabled(): boolean
```

**Returns:** the `ENABLED` property's value; present on hoppers.

**Since:** 1.8.4

### isExtended {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isExtended-}

```js
isExtended(): boolean
```

**Returns:** the `EXTENDED` property's value; present on pistons.

**Since:** 1.8.4

### isFalling {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isFalling-}

```js
isFalling(): boolean
```

**Returns:** the `FALLING` property's value; present on fluids.

**Since:** 1.8.4

### isHanging {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isHanging-}

```js
isHanging(): boolean
```

Returns the state's `HANGING` property.

**Returns:** whether the state's `HANGING` property is true

**Since:** 1.8.4

### isInverted {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isInverted-}

```js
isInverted(): boolean
```

Returns the state's `INVERTED` property.

**Returns:** whether the state's `INVERTED` property is true

**Since:** 1.8.4

### isInWall {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isInWall-}

```js
isInWall(): boolean
```

Returns the state's `IN_WALL` property.

**Returns:** whether the state's `IN_WALL` property is true

**Since:** 1.8.4

### isLit {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isLit-}

```js
isLit(): boolean
```

Returns the state's `LIT` property.

**Returns:** the `LIT` property's value.

**Since:** 1.8.4

### isLocked {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isLocked-}

```js
isLocked(): boolean
```

Returns the state's `LOCKED` property.

**Returns:** the `LOCKED` property's value.

**Since:** 1.8.4

### isNorth {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isNorth-}

```js
isNorth(): boolean
```

**Returns:** whether the state's `NORTH` property is true.

**Since:** 1.8.4

### isOccupied {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isOccupied-}

```js
isOccupied(): boolean
```

Returns the state's `OCCUPIED` property.

**Returns:** the `OCCUPIED` property's value.

**Since:** 1.8.4

### isOminous {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isOminous-}

```js
isOminous(): boolean
```

**Returns:** whether the vault is ominous.

**Since:** 2.1.0

### isOpen {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isOpen-}

```js
isOpen(): boolean
```

Returns the state's `OPEN` property.

**Returns:** whether the state's `OPEN` property is true

**Since:** 1.8.4

### isPersistent {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isPersistent-}

```js
isPersistent(): boolean
```

Returns the state's `PERSISTENT` property.

**Returns:** the `PERSISTENT` property's value.

**Since:** 1.8.4

### isPowered {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isPowered-}

```js
isPowered(): boolean
```

Returns the state's `POWERED` property.

**Returns:** the `POWERED` property's value.

**Since:** 1.8.4

### isShort {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isShort-}

```js
isShort(): boolean
```

**Returns:** the `SHORT` property's value; present on piston heads.

**Since:** 1.8.4

### isShrieking {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isShrieking-}

```js
isShrieking(): boolean
```

**Returns:** whether this sculk sensor is shrieking.

**Since:** 1.8.4

### isSignalFire {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isSignalFire-}

```js
isSignalFire(): boolean
```

Returns the state's `SIGNAL_FIRE` property.

**Returns:** the `SIGNAL_FIRE` property's value.

**Since:** 1.8.4

### isSlot0Occupied {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isSlot0Occupied-}

```js
isSlot0Occupied(): boolean
```

**Returns:** whether chiseled bookshelf slot 0 is occupied.

**Since:** 1.8.4

### isSlot1Occupied {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isSlot1Occupied-}

```js
isSlot1Occupied(): boolean
```

**Returns:** the `SLOT_1_OCCUPIED` property's value.

**Since:** 1.8.4

### isSlot2Occupied {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isSlot2Occupied-}

```js
isSlot2Occupied(): boolean
```

**Returns:** the `SLOT_2_OCCUPIED` property's value.

**Since:** 1.8.4

### isSlot3Occupied {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isSlot3Occupied-}

```js
isSlot3Occupied(): boolean
```

**Returns:** the `SLOT_3_OCCUPIED` property's value.

**Since:** 1.8.4

### isSlot4Occupied {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isSlot4Occupied-}

```js
isSlot4Occupied(): boolean
```

**Returns:** whether chiseled bookshelf slot 4 is occupied.

**Since:** 1.8.4

### isSlot5Occupied {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isSlot5Occupied-}

```js
isSlot5Occupied(): boolean
```

**Returns:** whether chiseled bookshelf slot 5 is occupied.

**Since:** 1.8.4

### isSnowy {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isSnowy-}

```js
isSnowy(): boolean
```

Returns the state's `SNOWY` property.

**Returns:** the `SNOWY` property's value.

**Since:** 1.8.4

### isSouth {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isSouth-}

```js
isSouth(): boolean
```

**Returns:** whether the state's `SOUTH` property is true.

**Since:** 1.8.4

### isTriggered {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isTriggered-}

```js
isTriggered(): boolean
```

Returns the state's `TRIGGERED` property.

**Returns:** the `TRIGGERED` property's value.

**Since:** 1.8.4

### isUnstable {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isUnstable-}

```js
isUnstable(): boolean
```

Returns the state's `UNSTABLE` property.

**Returns:** the `UNSTABLE` property's value.

**Since:** 1.8.4

### isUp {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isUp-}

```js
isUp(): boolean
```

**Returns:** whether the state's `UP` property is true.

**Since:** 1.8.4

### isWaterlogged {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isWaterlogged-}

```js
isWaterlogged(): boolean
```

Returns whether this state's `WATERLOGGED` property is true.  
```js
// is there water in this block rather than around it
const reg = Client.getRegistryManager();  
const dry = reg.getBlockState("minecraft:oak_fence", "[waterlogged=false]").getUniversal();  
const wet = reg.getBlockState("minecraft:oak_fence", "[waterlogged=true]").getUniversal();  
Chat.log(`dry ${dry.isWaterlogged()}, wet ${wet.isWaterlogged()}`);  

// and what the wet one actually holds
const state = reg.getBlockState("minecraft:oak_fence", "[waterlogged=true]");  
Chat.log(state.getFluidState().getId());  
```

**Returns:** the `WATERLOGGED` property's value

**Since:** 1.8.4

### isWest {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_isWest-}

```js
isWest(): boolean
```

**Returns:** whether the state's `WEST` property is true.

**Since:** 1.8.4

### main {#com.jsmacrosce.jsmacros.client.api.helper.world.UniversalBlockStateHelper_main-String[]-}

```js
static main(String[] args): void
```

Prints candidate accessor snippets for declared block-state properties without a matching
accessor, followed by method names left unmatched by the diagnostic. The printed snippets
are suggestions, not guaranteed compilable source.

**Parameters:**
- `args`: unused command-line arguments
