BlockStateProperties .java

net.minecraft.world.level.block.state.properties.BlockStateProperties (class): members: DRIED_GHAST_HYDRATION_LEVELS, MAX_RESPAWN_ANCHOR_CHARGES, DRAG.

net.minecraft.world.level.block.state.propertiesclass158 linescommon13.1 KB

API Surface (0)

No public/protected methods detected (fields or constants only).

Fields & Constants (141)

ATTACHED
BERRIES
BLOOM
BOTTOM
CAN_SUMMON
CONDITIONAL
DISARMED
DRAG
ENABLED
EXTENDED
EYE
FALLING
HANGING
HAS_BOTTLE_0
HAS_BOTTLE_1
HAS_BOTTLE_2
HAS_RECORD
HAS_BOOK
INVERTED
IN_WALL
LIT
LOCKED
NATURAL
OCCUPIED
OPEN
PERSISTENT
POWERED
SHORT
SHRIEKING
SIGNAL_FIRE
SNOWY
TIP
TRIGGERED
UNSTABLE
WATERLOGGED
HORIZONTAL_AXIS
AXIS
UP
DOWN
NORTH
EAST
SOUTH
WEST
FACING
FACING_HOPPER
HORIZONTAL_FACING
FLOWER_AMOUNT
SEGMENT_AMOUNT
ORIENTATION
ATTACH_FACE
BELL_ATTACHMENT
EAST_WALL
NORTH_WALL
SOUTH_WALL
WEST_WALL
EAST_REDSTONE
NORTH_REDSTONE
SOUTH_REDSTONE
WEST_REDSTONE
DOUBLE_BLOCK_HALF
HALF
SIDE_CHAIN_PART
RAIL_SHAPE
RAIL_SHAPE_STRAIGHT
MAX_AGE_1
MAX_AGE_2
MAX_AGE_3
MAX_AGE_4
MAX_AGE_5
MAX_AGE_7
MAX_AGE_15
MAX_AGE_25
AGE_1
AGE_2
AGE_3
AGE_4
AGE_5
AGE_7
AGE_15
AGE_25
BITES
CANDLES
DELAY
MAX_DISTANCE
DISTANCE
EGGS
HATCH
LAYERS
MIN_LEVEL
MIN_LEVEL_CAULDRON
MAX_LEVEL_3
MAX_LEVEL_8
LEVEL_CAULDRON
LEVEL_COMPOSTER
LEVEL_FLOWING
LEVEL_HONEY
MAX_LEVEL_15
LEVEL
MOISTURE
NOTE
PICKLES
POWER
STAGE
STABILITY_MAX_DISTANCE
STABILITY_DISTANCE
MIN_RESPAWN_ANCHOR_CHARGES
MAX_RESPAWN_ANCHOR_CHARGES
RESPAWN_ANCHOR_CHARGES
DRIED_GHAST_HYDRATION_LEVELS
ROTATION_16
BED_PART
CHEST_TYPE
MODE_COMPARATOR
DOOR_HINGE
NOTEBLOCK_INSTRUMENT
PISTON_TYPE
SLAB_TYPE
STAIRS_SHAPE
STRUCTUREBLOCK_MODE
BAMBOO_LEAVES
TILT
VERTICAL_DIRECTION
SPELEOTHEM_THICKNESS
SCULK_SENSOR_PHASE
SLOT_0_OCCUPIED
SLOT_1_OCCUPIED
SLOT_2_OCCUPIED
SLOT_3_OCCUPIED
SLOT_4_OCCUPIED
SLOT_5_OCCUPIED
DUSTED
CRACKED
CRAFTING
TRIAL_SPAWNER_STATE
VAULT_STATE
CREAKING_HEART_STATE
OMINOUS
TEST_BLOCK_MODE
MAP
COPPER_GOLEM_POSE
POTENT_SULFUR_STATE

String literals (88)

"attached"
"berries"
"bloom"
"bottom"
"can_summon"
"conditional"
"disarmed"
"drag"
"enabled"
"extended"
"falling"
"hanging"
"has_bottle_0"
"has_bottle_1"
"has_bottle_2"
"has_record"
"has_book"
"inverted"
"in_wall"
"locked"
"natural"
"occupied"
"open"
"persistent"

Full Source

BlockStateProperties.java158 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.block.state.properties;
2
3
import net.minecraft.core.Direction;
4
import net.minecraft.core.FrontAndTop;
5
import net.minecraft.world.level.block.CopperGolemStatueBlock;
6
import net.minecraft.world.level.block.entity.trialspawner.TrialSpawnerState;
7
import net.minecraft.world.level.block.entity.vault.VaultState;
8
9
public class BlockStateProperties {
10
	public static final BooleanProperty ATTACHED = BooleanProperty.create("attached");
11
	public static final BooleanProperty BERRIES = BooleanProperty.create("berries");
12
	public static final BooleanProperty BLOOM = BooleanProperty.create("bloom");
13
	public static final BooleanProperty BOTTOM = BooleanProperty.create("bottom");
14
	public static final BooleanProperty CAN_SUMMON = BooleanProperty.create("can_summon");
15
	public static final BooleanProperty CONDITIONAL = BooleanProperty.create("conditional");
16
	public static final BooleanProperty DISARMED = BooleanProperty.create("disarmed");
17
	public static final BooleanProperty DRAG = BooleanProperty.create("drag");
18
	public static final BooleanProperty ENABLED = BooleanProperty.create("enabled");
19
	public static final BooleanProperty EXTENDED = BooleanProperty.create("extended");
20
	public static final BooleanProperty EYE = BooleanProperty.create("eye");
21
	public static final BooleanProperty FALLING = BooleanProperty.create("falling");
22
	public static final BooleanProperty HANGING = BooleanProperty.create("hanging");
23
	public static final BooleanProperty HAS_BOTTLE_0 = BooleanProperty.create("has_bottle_0");
24
	public static final BooleanProperty HAS_BOTTLE_1 = BooleanProperty.create("has_bottle_1");
25
	public static final BooleanProperty HAS_BOTTLE_2 = BooleanProperty.create("has_bottle_2");
26
	public static final BooleanProperty HAS_RECORD = BooleanProperty.create("has_record");
27
	public static final BooleanProperty HAS_BOOK = BooleanProperty.create("has_book");
28
	public static final BooleanProperty INVERTED = BooleanProperty.create("inverted");
29
	public static final BooleanProperty IN_WALL = BooleanProperty.create("in_wall");
30
	public static final BooleanProperty LIT = BooleanProperty.create("lit");
31
	public static final BooleanProperty LOCKED = BooleanProperty.create("locked");
32
	public static final BooleanProperty NATURAL = BooleanProperty.create("natural");
33
	public static final BooleanProperty OCCUPIED = BooleanProperty.create("occupied");
34
	public static final BooleanProperty OPEN = BooleanProperty.create("open");
35
	public static final BooleanProperty PERSISTENT = BooleanProperty.create("persistent");
36
	public static final BooleanProperty POWERED = BooleanProperty.create("powered");
37
	public static final BooleanProperty SHORT = BooleanProperty.create("short");
38
	public static final BooleanProperty SHRIEKING = BooleanProperty.create("shrieking");
39
	public static final BooleanProperty SIGNAL_FIRE = BooleanProperty.create("signal_fire");
40
	public static final BooleanProperty SNOWY = BooleanProperty.create("snowy");
41
	public static final BooleanProperty TIP = BooleanProperty.create("tip");
42
	public static final BooleanProperty TRIGGERED = BooleanProperty.create("triggered");
43
	public static final BooleanProperty UNSTABLE = BooleanProperty.create("unstable");
44
	public static final BooleanProperty WATERLOGGED = BooleanProperty.create("waterlogged");
45
	public static final EnumProperty<Direction.Axis> HORIZONTAL_AXIS = EnumProperty.create("axis", Direction.Axis.class, Direction.Axis.X, Direction.Axis.Z);
46
	public static final EnumProperty<Direction.Axis> AXIS = EnumProperty.create("axis", Direction.Axis.class);
47
	public static final BooleanProperty UP = BooleanProperty.create("up");
48
	public static final BooleanProperty DOWN = BooleanProperty.create("down");
49
	public static final BooleanProperty NORTH = BooleanProperty.create("north");
50
	public static final BooleanProperty EAST = BooleanProperty.create("east");
51
	public static final BooleanProperty SOUTH = BooleanProperty.create("south");
52
	public static final BooleanProperty WEST = BooleanProperty.create("west");
53
	public static final EnumProperty<Direction> FACING = EnumProperty.create(
54
		"facing", Direction.class, Direction.NORTH, Direction.EAST, Direction.SOUTH, Direction.WEST, Direction.UP, Direction.DOWN
55
	);
56
	public static final EnumProperty<Direction> FACING_HOPPER = EnumProperty.create("facing", Direction.class, direction -> direction != Direction.UP);
57
	public static final EnumProperty<Direction> HORIZONTAL_FACING = EnumProperty.create("facing", Direction.class, Direction.Plane.HORIZONTAL);
58
	public static final IntegerProperty FLOWER_AMOUNT = IntegerProperty.create("flower_amount", 1, 4);
59
	public static final IntegerProperty SEGMENT_AMOUNT = IntegerProperty.create("segment_amount", 1, 4);
60
	public static final EnumProperty<FrontAndTop> ORIENTATION = EnumProperty.create("orientation", FrontAndTop.class);
61
	public static final EnumProperty<AttachFace> ATTACH_FACE = EnumProperty.create("face", AttachFace.class);
62
	public static final EnumProperty<BellAttachType> BELL_ATTACHMENT = EnumProperty.create("attachment", BellAttachType.class);
63
	public static final EnumProperty<WallSide> EAST_WALL = EnumProperty.create("east", WallSide.class);
64
	public static final EnumProperty<WallSide> NORTH_WALL = EnumProperty.create("north", WallSide.class);
65
	public static final EnumProperty<WallSide> SOUTH_WALL = EnumProperty.create("south", WallSide.class);
66
	public static final EnumProperty<WallSide> WEST_WALL = EnumProperty.create("west", WallSide.class);
67
	public static final EnumProperty<RedstoneSide> EAST_REDSTONE = EnumProperty.create("east", RedstoneSide.class);
68
	public static final EnumProperty<RedstoneSide> NORTH_REDSTONE = EnumProperty.create("north", RedstoneSide.class);
69
	public static final EnumProperty<RedstoneSide> SOUTH_REDSTONE = EnumProperty.create("south", RedstoneSide.class);
70
	public static final EnumProperty<RedstoneSide> WEST_REDSTONE = EnumProperty.create("west", RedstoneSide.class);
71
	public static final EnumProperty<DoubleBlockHalf> DOUBLE_BLOCK_HALF = EnumProperty.create("half", DoubleBlockHalf.class);
72
	public static final EnumProperty<Half> HALF = EnumProperty.create("half", Half.class);
73
	public static final EnumProperty<SideChainPart> SIDE_CHAIN_PART = EnumProperty.create("side_chain", SideChainPart.class);
74
	public static final EnumProperty<RailShape> RAIL_SHAPE = EnumProperty.create("shape", RailShape.class);
75
	public static final EnumProperty<RailShape> RAIL_SHAPE_STRAIGHT = EnumProperty.create(
76
		"shape",
77
		RailShape.class,
78
		railShape -> railShape != RailShape.NORTH_EAST && railShape != RailShape.NORTH_WEST && railShape != RailShape.SOUTH_EAST && railShape != RailShape.SOUTH_WEST
79
	);
80
	public static final int MAX_AGE_1 = 1;
81
	public static final int MAX_AGE_2 = 2;
82
	public static final int MAX_AGE_3 = 3;
83
	public static final int MAX_AGE_4 = 4;
84
	public static final int MAX_AGE_5 = 5;
85
	public static final int MAX_AGE_7 = 7;
86
	public static final int MAX_AGE_15 = 15;
87
	public static final int MAX_AGE_25 = 25;
88
	public static final IntegerProperty AGE_1 = IntegerProperty.create("age", 0, 1);
89
	public static final IntegerProperty AGE_2 = IntegerProperty.create("age", 0, 2);
90
	public static final IntegerProperty AGE_3 = IntegerProperty.create("age", 0, 3);
91
	public static final IntegerProperty AGE_4 = IntegerProperty.create("age", 0, 4);
92
	public static final IntegerProperty AGE_5 = IntegerProperty.create("age", 0, 5);
93
	public static final IntegerProperty AGE_7 = IntegerProperty.create("age", 0, 7);
94
	public static final IntegerProperty AGE_15 = IntegerProperty.create("age", 0, 15);
95
	public static final IntegerProperty AGE_25 = IntegerProperty.create("age", 0, 25);
96
	public static final IntegerProperty BITES = IntegerProperty.create("bites", 0, 6);
97
	public static final IntegerProperty CANDLES = IntegerProperty.create("candles", 1, 4);
98
	public static final IntegerProperty DELAY = IntegerProperty.create("delay", 1, 4);
99
	public static final int MAX_DISTANCE = 7;
100
	public static final IntegerProperty DISTANCE = IntegerProperty.create("distance", 1, 7);
101
	public static final IntegerProperty EGGS = IntegerProperty.create("eggs", 1, 4);
102
	public static final IntegerProperty HATCH = IntegerProperty.create("hatch", 0, 2);
103
	public static final IntegerProperty LAYERS = IntegerProperty.create("layers", 1, 8);
104
	public static final int MIN_LEVEL = 0;
105
	public static final int MIN_LEVEL_CAULDRON = 1;
106
	public static final int MAX_LEVEL_3 = 3;
107
	public static final int MAX_LEVEL_8 = 8;
108
	public static final IntegerProperty LEVEL_CAULDRON = IntegerProperty.create("level", 1, 3);
109
	public static final IntegerProperty LEVEL_COMPOSTER = IntegerProperty.create("level", 0, 8);
110
	public static final IntegerProperty LEVEL_FLOWING = IntegerProperty.create("level", 1, 8);
111
	public static final IntegerProperty LEVEL_HONEY = IntegerProperty.create("honey_level", 0, 5);
112
	public static final int MAX_LEVEL_15 = 15;
113
	public static final IntegerProperty LEVEL = IntegerProperty.create("level", 0, 15);
114
	public static final IntegerProperty MOISTURE = IntegerProperty.create("moisture", 0, 7);
115
	public static final IntegerProperty NOTE = IntegerProperty.create("note", 0, 24);
116
	public static final IntegerProperty PICKLES = IntegerProperty.create("pickles", 1, 4);
117
	public static final IntegerProperty POWER = IntegerProperty.create("power", 0, 15);
118
	public static final IntegerProperty STAGE = IntegerProperty.create("stage", 0, 1);
119
	public static final int STABILITY_MAX_DISTANCE = 7;
120
	public static final IntegerProperty STABILITY_DISTANCE = IntegerProperty.create("distance", 0, 7);
121
	public static final int MIN_RESPAWN_ANCHOR_CHARGES = 0;
122
	public static final int MAX_RESPAWN_ANCHOR_CHARGES = 4;
123
	public static final IntegerProperty RESPAWN_ANCHOR_CHARGES = IntegerProperty.create("charges", 0, 4);
124
	public static final IntegerProperty DRIED_GHAST_HYDRATION_LEVELS = IntegerProperty.create("hydration", 0, 3);
125
	public static final IntegerProperty ROTATION_16 = IntegerProperty.create("rotation", 0, RotationSegment.getMaxSegmentIndex());
126
	public static final EnumProperty<BedPart> BED_PART = EnumProperty.create("part", BedPart.class);
127
	public static final EnumProperty<ChestType> CHEST_TYPE = EnumProperty.create("type", ChestType.class);
128
	public static final EnumProperty<ComparatorMode> MODE_COMPARATOR = EnumProperty.create("mode", ComparatorMode.class);
129
	public static final EnumProperty<DoorHingeSide> DOOR_HINGE = EnumProperty.create("hinge", DoorHingeSide.class);
130
	public static final EnumProperty<NoteBlockInstrument> NOTEBLOCK_INSTRUMENT = EnumProperty.create("instrument", NoteBlockInstrument.class);
131
	public static final EnumProperty<PistonType> PISTON_TYPE = EnumProperty.create("type", PistonType.class);
132
	public static final EnumProperty<SlabType> SLAB_TYPE = EnumProperty.create("type", SlabType.class);
133
	public static final EnumProperty<StairsShape> STAIRS_SHAPE = EnumProperty.create("shape", StairsShape.class);
134
	public static final EnumProperty<StructureMode> STRUCTUREBLOCK_MODE = EnumProperty.create("mode", StructureMode.class);
135
	public static final EnumProperty<BambooLeaves> BAMBOO_LEAVES = EnumProperty.create("leaves", BambooLeaves.class);
136
	public static final EnumProperty<Tilt> TILT = EnumProperty.create("tilt", Tilt.class);
137
	public static final EnumProperty<Direction> VERTICAL_DIRECTION = EnumProperty.create("vertical_direction", Direction.class, Direction.UP, Direction.DOWN);
138
	public static final EnumProperty<SpeleothemThickness> SPELEOTHEM_THICKNESS = EnumProperty.create("thickness", SpeleothemThickness.class);
139
	public static final EnumProperty<SculkSensorPhase> SCULK_SENSOR_PHASE = EnumProperty.create("sculk_sensor_phase", SculkSensorPhase.class);
140
	public static final BooleanProperty SLOT_0_OCCUPIED = BooleanProperty.create("slot_0_occupied");
141
	public static final BooleanProperty SLOT_1_OCCUPIED = BooleanProperty.create("slot_1_occupied");
142
	public static final BooleanProperty SLOT_2_OCCUPIED = BooleanProperty.create("slot_2_occupied");
143
	public static final BooleanProperty SLOT_3_OCCUPIED = BooleanProperty.create("slot_3_occupied");
144
	public static final BooleanProperty SLOT_4_OCCUPIED = BooleanProperty.create("slot_4_occupied");
145
	public static final BooleanProperty SLOT_5_OCCUPIED = BooleanProperty.create("slot_5_occupied");
146
	public static final IntegerProperty DUSTED = IntegerProperty.create("dusted", 0, 3);
147
	public static final BooleanProperty CRACKED = BooleanProperty.create("cracked");
148
	public static final BooleanProperty CRAFTING = BooleanProperty.create("crafting");
149
	public static final EnumProperty<TrialSpawnerState> TRIAL_SPAWNER_STATE = EnumProperty.create("trial_spawner_state", TrialSpawnerState.class);
150
	public static final EnumProperty<VaultState> VAULT_STATE = EnumProperty.create("vault_state", VaultState.class);
151
	public static final EnumProperty<CreakingHeartState> CREAKING_HEART_STATE = EnumProperty.create("creaking_heart_state", CreakingHeartState.class);
152
	public static final BooleanProperty OMINOUS = BooleanProperty.create("ominous");
153
	public static final EnumProperty<TestBlockMode> TEST_BLOCK_MODE = EnumProperty.create("mode", TestBlockMode.class);
154
	public static final BooleanProperty MAP = BooleanProperty.create("map");
155
	public static final EnumProperty<CopperGolemStatueBlock.Pose> COPPER_GOLEM_POSE = EnumProperty.create("copper_golem_pose", CopperGolemStatueBlock.Pose.class);
156
	public static final EnumProperty<PotentSulfurState> POTENT_SULFUR_STATE = EnumProperty.create("potent_sulfur_state", PotentSulfurState.class);
157
}
158

Decompiled Minecraft 26.3 source of BlockStateProperties (net/minecraft/world/level/block/state/properties/BlockStateProperties.java) with Mojang official mappings, stored verbatim on the site.