mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 11:18:52 +00:00
Revert "BlockStateValues now includes integer values too"
This reverts commit 0626edbcddf16463b4a69566976bc2b47c64660a.
This commit is contained in:
parent
0626edbcdd
commit
03e3ecdbd3
@ -33,7 +33,7 @@ use pocketmine\block\utils\LeverFacing;
|
||||
use pocketmine\block\utils\SlabType;
|
||||
use pocketmine\block\VanillaBlocks;
|
||||
use pocketmine\data\bedrock\blockstate\BlockStateDeserializerHelper as Helper;
|
||||
use pocketmine\data\bedrock\blockstate\BlockStateValues as Values;
|
||||
use pocketmine\data\bedrock\blockstate\BlockStateStringValues as StringValues;
|
||||
use pocketmine\data\bedrock\blockstate\BlockTypeNames as Ids;
|
||||
use pocketmine\math\Axis;
|
||||
use pocketmine\math\Facing;
|
||||
@ -82,10 +82,10 @@ final class BlockStateDeserializer{
|
||||
$this->map(Ids::ANVIL, function(BlockStateReader $in) : Block{
|
||||
return VanillaBlocks::ANVIL()
|
||||
->setDamage(match($value = $in->readString(BlockStateNames::DAMAGE)){
|
||||
Values::DAMAGE_UNDAMAGED => 0,
|
||||
Values::DAMAGE_SLIGHTLY_DAMAGED => 1,
|
||||
Values::DAMAGE_VERY_DAMAGED => 2,
|
||||
Values::DAMAGE_BROKEN => 0,
|
||||
StringValues::DAMAGE_UNDAMAGED => 0,
|
||||
StringValues::DAMAGE_SLIGHTLY_DAMAGED => 1,
|
||||
StringValues::DAMAGE_VERY_DAMAGED => 2,
|
||||
StringValues::DAMAGE_BROKEN => 0,
|
||||
default => throw $in->badValueException(BlockStateNames::DAMAGE, $value),
|
||||
})
|
||||
->setFacing($in->readLegacyHorizontalFacing());
|
||||
@ -93,15 +93,15 @@ final class BlockStateDeserializer{
|
||||
$this->map(Ids::BAMBOO, function(BlockStateReader $in) : Block{
|
||||
return VanillaBlocks::BAMBOO()
|
||||
->setLeafSize(match($value = $in->readString(BlockStateNames::BAMBOO_LEAF_SIZE)){
|
||||
Values::BAMBOO_LEAF_SIZE_NO_LEAVES => Bamboo::NO_LEAVES,
|
||||
Values::BAMBOO_LEAF_SIZE_SMALL_LEAVES => Bamboo::SMALL_LEAVES,
|
||||
Values::BAMBOO_LEAF_SIZE_LARGE_LEAVES => Bamboo::LARGE_LEAVES,
|
||||
StringValues::BAMBOO_LEAF_SIZE_NO_LEAVES => Bamboo::NO_LEAVES,
|
||||
StringValues::BAMBOO_LEAF_SIZE_SMALL_LEAVES => Bamboo::SMALL_LEAVES,
|
||||
StringValues::BAMBOO_LEAF_SIZE_LARGE_LEAVES => Bamboo::LARGE_LEAVES,
|
||||
default => throw $in->badValueException(BlockStateNames::BAMBOO_LEAF_SIZE, $value),
|
||||
})
|
||||
->setReady($in->readBool(BlockStateNames::AGE_BIT))
|
||||
->setThick(match($value = $in->readString(BlockStateNames::BAMBOO_STALK_THICKNESS)){
|
||||
Values::BAMBOO_STALK_THICKNESS_THIN => false,
|
||||
Values::BAMBOO_STALK_THICKNESS_THICK => true,
|
||||
StringValues::BAMBOO_STALK_THICKNESS_THIN => false,
|
||||
StringValues::BAMBOO_STALK_THICKNESS_THICK => true,
|
||||
default => throw $in->badValueException(BlockStateNames::BAMBOO_STALK_THICKNESS, $value),
|
||||
});
|
||||
});
|
||||
@ -191,10 +191,10 @@ final class BlockStateDeserializer{
|
||||
$this->map(Ids::CHEMICAL_HEAT, fn() => VanillaBlocks::CHEMICAL_HEAT());
|
||||
$this->map(Ids::CHEMISTRY_TABLE, function(BlockStateReader $in) : Block{
|
||||
return (match($type = $in->readString(BlockStateNames::CHEMISTRY_TABLE_TYPE)){
|
||||
Values::CHEMISTRY_TABLE_TYPE_COMPOUND_CREATOR => VanillaBlocks::COMPOUND_CREATOR(),
|
||||
Values::CHEMISTRY_TABLE_TYPE_ELEMENT_CONSTRUCTOR => VanillaBlocks::ELEMENT_CONSTRUCTOR(),
|
||||
Values::CHEMISTRY_TABLE_TYPE_LAB_TABLE => VanillaBlocks::LAB_TABLE(),
|
||||
Values::CHEMISTRY_TABLE_TYPE_MATERIAL_REDUCER => VanillaBlocks::MATERIAL_REDUCER(),
|
||||
StringValues::CHEMISTRY_TABLE_TYPE_COMPOUND_CREATOR => VanillaBlocks::COMPOUND_CREATOR(),
|
||||
StringValues::CHEMISTRY_TABLE_TYPE_ELEMENT_CONSTRUCTOR => VanillaBlocks::ELEMENT_CONSTRUCTOR(),
|
||||
StringValues::CHEMISTRY_TABLE_TYPE_LAB_TABLE => VanillaBlocks::LAB_TABLE(),
|
||||
StringValues::CHEMISTRY_TABLE_TYPE_MATERIAL_REDUCER => VanillaBlocks::MATERIAL_REDUCER(),
|
||||
default => throw $in->badValueException(BlockStateNames::CHEMISTRY_TABLE_TYPE, $type),
|
||||
})->setFacing($in->readLegacyHorizontalFacing());
|
||||
});
|
||||
@ -240,8 +240,8 @@ final class BlockStateDeserializer{
|
||||
->setCoralType($in->readCoralType())
|
||||
->setDead($in->readBool(BlockStateNames::DEAD_BIT));
|
||||
});
|
||||
$this->map(Ids::CORAL_FAN, fn(BlockStateReader $in) => Helper::decodeFloorCoralFan(VanillaBlocks::CORAL_FAN(), $in)->setDead(false));
|
||||
$this->map(Ids::CORAL_FAN_DEAD, fn(BlockStateReader $in) => Helper::decodeFloorCoralFan(VanillaBlocks::CORAL_FAN(), $in)->setDead(true));
|
||||
$this->map(Ids::CORAL_FAN, fn(BlockStateReader $in) => Helper::decodeFloorCoralFan($in)->setDead(false));
|
||||
$this->map(Ids::CORAL_FAN_DEAD, fn(BlockStateReader $in) => Helper::decodeFloorCoralFan($in)->setDead(true));
|
||||
$this->map(Ids::CORAL_FAN_HANG, function(BlockStateReader $in) : Block{
|
||||
return VanillaBlocks::WALL_CORAL_FAN()
|
||||
->setCoralType($in->readBool(BlockStateNames::CORAL_HANG_TYPE_BIT) ? CoralType::BRAIN() : CoralType::TUBE())
|
||||
@ -299,19 +299,19 @@ final class BlockStateDeserializer{
|
||||
$this->map(Ids::DIRT, function(BlockStateReader $in) : Block{
|
||||
return VanillaBlocks::DIRT()
|
||||
->setCoarse(match($value = $in->readString(BlockStateNames::DIRT_TYPE)){
|
||||
Values::DIRT_TYPE_NORMAL => false,
|
||||
Values::DIRT_TYPE_COARSE => true,
|
||||
StringValues::DIRT_TYPE_NORMAL => false,
|
||||
StringValues::DIRT_TYPE_COARSE => true,
|
||||
default => throw $in->badValueException(BlockStateNames::DIRT_TYPE, $value),
|
||||
});
|
||||
});
|
||||
$this->map(Ids::DOUBLE_PLANT, function(BlockStateReader $in) : Block{
|
||||
return (match($type = $in->readString(BlockStateNames::DOUBLE_PLANT_TYPE)){
|
||||
Values::DOUBLE_PLANT_TYPE_FERN => VanillaBlocks::LARGE_FERN(),
|
||||
Values::DOUBLE_PLANT_TYPE_GRASS => VanillaBlocks::DOUBLE_TALLGRASS(),
|
||||
Values::DOUBLE_PLANT_TYPE_PAEONIA => VanillaBlocks::PEONY(),
|
||||
Values::DOUBLE_PLANT_TYPE_ROSE => VanillaBlocks::ROSE_BUSH(),
|
||||
Values::DOUBLE_PLANT_TYPE_SUNFLOWER => VanillaBlocks::SUNFLOWER(),
|
||||
Values::DOUBLE_PLANT_TYPE_SYRINGA => VanillaBlocks::LILAC(),
|
||||
StringValues::DOUBLE_PLANT_TYPE_FERN => VanillaBlocks::LARGE_FERN(),
|
||||
StringValues::DOUBLE_PLANT_TYPE_GRASS => VanillaBlocks::DOUBLE_TALLGRASS(),
|
||||
StringValues::DOUBLE_PLANT_TYPE_PAEONIA => VanillaBlocks::PEONY(),
|
||||
StringValues::DOUBLE_PLANT_TYPE_ROSE => VanillaBlocks::ROSE_BUSH(),
|
||||
StringValues::DOUBLE_PLANT_TYPE_SUNFLOWER => VanillaBlocks::SUNFLOWER(),
|
||||
StringValues::DOUBLE_PLANT_TYPE_SYRINGA => VanillaBlocks::LILAC(),
|
||||
default => throw $in->badValueException(BlockStateNames::DOUBLE_PLANT_TYPE, $type),
|
||||
})->setTop($in->readBool(BlockStateNames::UPPER_BLOCK_BIT));
|
||||
});
|
||||
@ -476,12 +476,12 @@ final class BlockStateDeserializer{
|
||||
});
|
||||
$this->map(Ids::FENCE, function(BlockStateReader $in) : Block{
|
||||
return match($woodName = $in->readString(BlockStateNames::WOOD_TYPE)){
|
||||
Values::WOOD_TYPE_OAK => VanillaBlocks::OAK_FENCE(),
|
||||
Values::WOOD_TYPE_SPRUCE => VanillaBlocks::SPRUCE_FENCE(),
|
||||
Values::WOOD_TYPE_BIRCH => VanillaBlocks::BIRCH_FENCE(),
|
||||
Values::WOOD_TYPE_JUNGLE => VanillaBlocks::JUNGLE_FENCE(),
|
||||
Values::WOOD_TYPE_ACACIA => VanillaBlocks::ACACIA_FENCE(),
|
||||
Values::WOOD_TYPE_DARK_OAK => VanillaBlocks::DARK_OAK_FENCE(),
|
||||
StringValues::WOOD_TYPE_OAK => VanillaBlocks::OAK_FENCE(),
|
||||
StringValues::WOOD_TYPE_SPRUCE => VanillaBlocks::SPRUCE_FENCE(),
|
||||
StringValues::WOOD_TYPE_BIRCH => VanillaBlocks::BIRCH_FENCE(),
|
||||
StringValues::WOOD_TYPE_JUNGLE => VanillaBlocks::JUNGLE_FENCE(),
|
||||
StringValues::WOOD_TYPE_ACACIA => VanillaBlocks::ACACIA_FENCE(),
|
||||
StringValues::WOOD_TYPE_DARK_OAK => VanillaBlocks::DARK_OAK_FENCE(),
|
||||
default => throw $in->badValueException(BlockStateNames::WOOD_TYPE, $woodName),
|
||||
};
|
||||
});
|
||||
@ -590,10 +590,10 @@ final class BlockStateDeserializer{
|
||||
$this->map(Ids::LAVA, fn(BlockStateReader $in) => Helper::decodeStillLiquid(VanillaBlocks::LAVA(), $in));
|
||||
$this->map(Ids::LEAVES, function(BlockStateReader $in) : Block{
|
||||
return (match($type = $in->readString(BlockStateNames::OLD_LEAF_TYPE)){
|
||||
Values::OLD_LEAF_TYPE_BIRCH => VanillaBlocks::BIRCH_LEAVES(),
|
||||
Values::OLD_LEAF_TYPE_JUNGLE => VanillaBlocks::JUNGLE_LEAVES(),
|
||||
Values::OLD_LEAF_TYPE_OAK => VanillaBlocks::OAK_LEAVES(),
|
||||
Values::OLD_LEAF_TYPE_SPRUCE => VanillaBlocks::SPRUCE_LEAVES(),
|
||||
StringValues::OLD_LEAF_TYPE_BIRCH => VanillaBlocks::BIRCH_LEAVES(),
|
||||
StringValues::OLD_LEAF_TYPE_JUNGLE => VanillaBlocks::JUNGLE_LEAVES(),
|
||||
StringValues::OLD_LEAF_TYPE_OAK => VanillaBlocks::OAK_LEAVES(),
|
||||
StringValues::OLD_LEAF_TYPE_SPRUCE => VanillaBlocks::SPRUCE_LEAVES(),
|
||||
default => throw $in->badValueException(BlockStateNames::OLD_LEAF_TYPE, $type),
|
||||
})
|
||||
->setNoDecay($in->readBool(BlockStateNames::PERSISTENT_BIT))
|
||||
@ -601,8 +601,8 @@ final class BlockStateDeserializer{
|
||||
});
|
||||
$this->map(Ids::LEAVES2, function(BlockStateReader $in) : Block{
|
||||
return (match($type = $in->readString(BlockStateNames::NEW_LEAF_TYPE)){
|
||||
Values::NEW_LEAF_TYPE_ACACIA => VanillaBlocks::ACACIA_LEAVES(),
|
||||
Values::NEW_LEAF_TYPE_DARK_OAK => VanillaBlocks::DARK_OAK_LEAVES(),
|
||||
StringValues::NEW_LEAF_TYPE_ACACIA => VanillaBlocks::ACACIA_LEAVES(),
|
||||
StringValues::NEW_LEAF_TYPE_DARK_OAK => VanillaBlocks::DARK_OAK_LEAVES(),
|
||||
default => throw $in->badValueException(BlockStateNames::NEW_LEAF_TYPE, $type),
|
||||
})
|
||||
->setNoDecay($in->readBool(BlockStateNames::PERSISTENT_BIT))
|
||||
@ -617,14 +617,14 @@ final class BlockStateDeserializer{
|
||||
return VanillaBlocks::LEVER()
|
||||
->setActivated($in->readBool(BlockStateNames::OPEN_BIT))
|
||||
->setFacing(match($value = $in->readString(BlockStateNames::LEVER_DIRECTION)){
|
||||
Values::LEVER_DIRECTION_DOWN_NORTH_SOUTH => LeverFacing::DOWN_AXIS_Z(),
|
||||
Values::LEVER_DIRECTION_DOWN_EAST_WEST => LeverFacing::DOWN_AXIS_X(),
|
||||
Values::LEVER_DIRECTION_UP_NORTH_SOUTH => LeverFacing::UP_AXIS_Z(),
|
||||
Values::LEVER_DIRECTION_UP_EAST_WEST => LeverFacing::UP_AXIS_X(),
|
||||
Values::LEVER_DIRECTION_NORTH => LeverFacing::NORTH(),
|
||||
Values::LEVER_DIRECTION_SOUTH => LeverFacing::SOUTH(),
|
||||
Values::LEVER_DIRECTION_WEST => LeverFacing::WEST(),
|
||||
Values::LEVER_DIRECTION_EAST => LeverFacing::EAST(),
|
||||
StringValues::LEVER_DIRECTION_DOWN_NORTH_SOUTH => LeverFacing::DOWN_AXIS_Z(),
|
||||
StringValues::LEVER_DIRECTION_DOWN_EAST_WEST => LeverFacing::DOWN_AXIS_X(),
|
||||
StringValues::LEVER_DIRECTION_UP_NORTH_SOUTH => LeverFacing::UP_AXIS_Z(),
|
||||
StringValues::LEVER_DIRECTION_UP_EAST_WEST => LeverFacing::UP_AXIS_X(),
|
||||
StringValues::LEVER_DIRECTION_NORTH => LeverFacing::NORTH(),
|
||||
StringValues::LEVER_DIRECTION_SOUTH => LeverFacing::SOUTH(),
|
||||
StringValues::LEVER_DIRECTION_WEST => LeverFacing::WEST(),
|
||||
StringValues::LEVER_DIRECTION_EAST => LeverFacing::EAST(),
|
||||
default => throw $in->badValueException(BlockStateNames::LEVER_DIRECTION, $value),
|
||||
});
|
||||
});
|
||||
@ -663,18 +663,18 @@ final class BlockStateDeserializer{
|
||||
});
|
||||
$this->map(Ids::LOG, function(BlockStateReader $in) : Block{
|
||||
return (match($type = $in->readString(BlockStateNames::OLD_LOG_TYPE)){
|
||||
Values::OLD_LOG_TYPE_BIRCH => VanillaBlocks::BIRCH_LOG(),
|
||||
Values::OLD_LOG_TYPE_JUNGLE => VanillaBlocks::JUNGLE_LOG(),
|
||||
Values::OLD_LOG_TYPE_OAK => VanillaBlocks::OAK_LOG(),
|
||||
Values::OLD_LOG_TYPE_SPRUCE => VanillaBlocks::SPRUCE_LOG(),
|
||||
StringValues::OLD_LOG_TYPE_BIRCH => VanillaBlocks::BIRCH_LOG(),
|
||||
StringValues::OLD_LOG_TYPE_JUNGLE => VanillaBlocks::JUNGLE_LOG(),
|
||||
StringValues::OLD_LOG_TYPE_OAK => VanillaBlocks::OAK_LOG(),
|
||||
StringValues::OLD_LOG_TYPE_SPRUCE => VanillaBlocks::SPRUCE_LOG(),
|
||||
default => throw $in->badValueException(BlockStateNames::OLD_LOG_TYPE, $type),
|
||||
})
|
||||
->setAxis($in->readPillarAxis());
|
||||
});
|
||||
$this->map(Ids::LOG2, function(BlockStateReader $in) : Block{
|
||||
return (match($type = $in->readString(BlockStateNames::NEW_LOG_TYPE)){
|
||||
Values::NEW_LOG_TYPE_ACACIA => VanillaBlocks::ACACIA_LOG(),
|
||||
Values::NEW_LOG_TYPE_DARK_OAK => VanillaBlocks::DARK_OAK_LOG(),
|
||||
StringValues::NEW_LOG_TYPE_ACACIA => VanillaBlocks::ACACIA_LOG(),
|
||||
StringValues::NEW_LOG_TYPE_DARK_OAK => VanillaBlocks::DARK_OAK_LOG(),
|
||||
default => throw $in->badValueException(BlockStateNames::NEW_LOG_TYPE, $type),
|
||||
})
|
||||
->setAxis($in->readPillarAxis());
|
||||
@ -690,12 +690,12 @@ final class BlockStateDeserializer{
|
||||
$this->map(Ids::MOB_SPAWNER, fn() => VanillaBlocks::MONSTER_SPAWNER());
|
||||
$this->map(Ids::MONSTER_EGG, function(BlockStateReader $in) : Block{
|
||||
return match($type = $in->readString(BlockStateNames::MONSTER_EGG_STONE_TYPE)){
|
||||
Values::MONSTER_EGG_STONE_TYPE_CHISELED_STONE_BRICK => VanillaBlocks::INFESTED_CHISELED_STONE_BRICK(),
|
||||
Values::MONSTER_EGG_STONE_TYPE_COBBLESTONE => VanillaBlocks::INFESTED_COBBLESTONE(),
|
||||
Values::MONSTER_EGG_STONE_TYPE_CRACKED_STONE_BRICK => VanillaBlocks::INFESTED_CRACKED_STONE_BRICK(),
|
||||
Values::MONSTER_EGG_STONE_TYPE_MOSSY_STONE_BRICK => VanillaBlocks::INFESTED_MOSSY_STONE_BRICK(),
|
||||
Values::MONSTER_EGG_STONE_TYPE_STONE => VanillaBlocks::INFESTED_STONE(),
|
||||
Values::MONSTER_EGG_STONE_TYPE_STONE_BRICK => VanillaBlocks::INFESTED_STONE_BRICK(),
|
||||
StringValues::MONSTER_EGG_STONE_TYPE_CHISELED_STONE_BRICK => VanillaBlocks::INFESTED_CHISELED_STONE_BRICK(),
|
||||
StringValues::MONSTER_EGG_STONE_TYPE_COBBLESTONE => VanillaBlocks::INFESTED_COBBLESTONE(),
|
||||
StringValues::MONSTER_EGG_STONE_TYPE_CRACKED_STONE_BRICK => VanillaBlocks::INFESTED_CRACKED_STONE_BRICK(),
|
||||
StringValues::MONSTER_EGG_STONE_TYPE_MOSSY_STONE_BRICK => VanillaBlocks::INFESTED_MOSSY_STONE_BRICK(),
|
||||
StringValues::MONSTER_EGG_STONE_TYPE_STONE => VanillaBlocks::INFESTED_STONE(),
|
||||
StringValues::MONSTER_EGG_STONE_TYPE_STONE_BRICK => VanillaBlocks::INFESTED_STONE_BRICK(),
|
||||
default => throw $in->badValueException(BlockStateNames::MONSTER_EGG_STONE_TYPE, $type),
|
||||
};
|
||||
});
|
||||
@ -722,12 +722,12 @@ final class BlockStateDeserializer{
|
||||
$this->map(Ids::PINK_GLAZED_TERRACOTTA, fn(BlockStateReader $in) => Helper::decodeGlazedTerracotta(VanillaBlocks::PINK_GLAZED_TERRACOTTA(), $in));
|
||||
$this->map(Ids::PLANKS, function(BlockStateReader $in) : Block{
|
||||
return match($woodName = $in->readString(BlockStateNames::WOOD_TYPE)){
|
||||
Values::WOOD_TYPE_OAK => VanillaBlocks::OAK_PLANKS(),
|
||||
Values::WOOD_TYPE_SPRUCE => VanillaBlocks::SPRUCE_PLANKS(),
|
||||
Values::WOOD_TYPE_BIRCH => VanillaBlocks::BIRCH_PLANKS(),
|
||||
Values::WOOD_TYPE_JUNGLE => VanillaBlocks::JUNGLE_PLANKS(),
|
||||
Values::WOOD_TYPE_ACACIA => VanillaBlocks::ACACIA_PLANKS(),
|
||||
Values::WOOD_TYPE_DARK_OAK => VanillaBlocks::DARK_OAK_PLANKS(),
|
||||
StringValues::WOOD_TYPE_OAK => VanillaBlocks::OAK_PLANKS(),
|
||||
StringValues::WOOD_TYPE_SPRUCE => VanillaBlocks::SPRUCE_PLANKS(),
|
||||
StringValues::WOOD_TYPE_BIRCH => VanillaBlocks::BIRCH_PLANKS(),
|
||||
StringValues::WOOD_TYPE_JUNGLE => VanillaBlocks::JUNGLE_PLANKS(),
|
||||
StringValues::WOOD_TYPE_ACACIA => VanillaBlocks::ACACIA_PLANKS(),
|
||||
StringValues::WOOD_TYPE_DARK_OAK => VanillaBlocks::DARK_OAK_PLANKS(),
|
||||
default => throw $in->badValueException(BlockStateNames::WOOD_TYPE, $woodName),
|
||||
};
|
||||
});
|
||||
@ -738,9 +738,9 @@ final class BlockStateDeserializer{
|
||||
$this->map(Ids::PORTAL, function(BlockStateReader $in) : Block{
|
||||
return VanillaBlocks::NETHER_PORTAL()
|
||||
->setAxis(match($value = $in->readString(BlockStateNames::PORTAL_AXIS)){
|
||||
Values::PORTAL_AXIS_UNKNOWN => Axis::X,
|
||||
Values::PORTAL_AXIS_X => Axis::X,
|
||||
Values::PORTAL_AXIS_Z => Axis::Z,
|
||||
StringValues::PORTAL_AXIS_UNKNOWN => Axis::X,
|
||||
StringValues::PORTAL_AXIS_X => Axis::X,
|
||||
StringValues::PORTAL_AXIS_Z => Axis::Z,
|
||||
default => throw $in->badValueException(BlockStateNames::PORTAL_AXIS, $value),
|
||||
});
|
||||
});
|
||||
@ -750,9 +750,9 @@ final class BlockStateDeserializer{
|
||||
->setPowered(true));
|
||||
$this->map(Ids::PRISMARINE, function(BlockStateReader $in) : Block{
|
||||
return match($type = $in->readString(BlockStateNames::PRISMARINE_BLOCK_TYPE)){
|
||||
Values::PRISMARINE_BLOCK_TYPE_BRICKS => VanillaBlocks::PRISMARINE_BRICKS(),
|
||||
Values::PRISMARINE_BLOCK_TYPE_DARK => VanillaBlocks::DARK_PRISMARINE(),
|
||||
Values::PRISMARINE_BLOCK_TYPE_DEFAULT => VanillaBlocks::PRISMARINE(),
|
||||
StringValues::PRISMARINE_BLOCK_TYPE_BRICKS => VanillaBlocks::PRISMARINE_BRICKS(),
|
||||
StringValues::PRISMARINE_BLOCK_TYPE_DARK => VanillaBlocks::DARK_PRISMARINE(),
|
||||
StringValues::PRISMARINE_BLOCK_TYPE_DEFAULT => VanillaBlocks::PRISMARINE(),
|
||||
default => throw $in->badValueException(BlockStateNames::PRISMARINE_BLOCK_TYPE, $type),
|
||||
};
|
||||
});
|
||||
@ -766,20 +766,20 @@ final class BlockStateDeserializer{
|
||||
$this->map(Ids::PURPLE_GLAZED_TERRACOTTA, fn(BlockStateReader $in) => Helper::decodeGlazedTerracotta(VanillaBlocks::PURPLE_GLAZED_TERRACOTTA(), $in));
|
||||
$this->map(Ids::PURPUR_BLOCK, function(BlockStateReader $in) : Block{
|
||||
return match($type = $in->readString(BlockStateNames::CHISEL_TYPE)){
|
||||
Values::CHISEL_TYPE_CHISELED, //TODO: bug in MCPE
|
||||
Values::CHISEL_TYPE_SMOOTH, //TODO: bug in MCPE
|
||||
Values::CHISEL_TYPE_DEFAULT => VanillaBlocks::PURPUR(), //TODO: axis intentionally ignored (useless)
|
||||
Values::CHISEL_TYPE_LINES => VanillaBlocks::PURPUR_PILLAR()->setAxis($in->readPillarAxis()),
|
||||
StringValues::CHISEL_TYPE_CHISELED, //TODO: bug in MCPE
|
||||
StringValues::CHISEL_TYPE_SMOOTH, //TODO: bug in MCPE
|
||||
StringValues::CHISEL_TYPE_DEFAULT => VanillaBlocks::PURPUR(), //TODO: axis intentionally ignored (useless)
|
||||
StringValues::CHISEL_TYPE_LINES => VanillaBlocks::PURPUR_PILLAR()->setAxis($in->readPillarAxis()),
|
||||
default => throw $in->badValueException(BlockStateNames::CHISEL_TYPE, $type),
|
||||
};
|
||||
});
|
||||
$this->map(Ids::PURPUR_STAIRS, fn(BlockStateReader $in) => Helper::decodeStairs(VanillaBlocks::PURPUR_STAIRS(), $in));
|
||||
$this->map(Ids::QUARTZ_BLOCK, function(BlockStateReader $in) : Block{
|
||||
return match($type = $in->readString(BlockStateNames::CHISEL_TYPE)){
|
||||
Values::CHISEL_TYPE_CHISELED => VanillaBlocks::CHISELED_QUARTZ()->setAxis($in->readPillarAxis()),
|
||||
Values::CHISEL_TYPE_DEFAULT => VanillaBlocks::QUARTZ(), //TODO: axis intentionally ignored (useless)
|
||||
Values::CHISEL_TYPE_LINES => VanillaBlocks::QUARTZ_PILLAR()->setAxis($in->readPillarAxis()),
|
||||
Values::CHISEL_TYPE_SMOOTH => VanillaBlocks::SMOOTH_QUARTZ(), //TODO: axis intentionally ignored (useless)
|
||||
StringValues::CHISEL_TYPE_CHISELED => VanillaBlocks::CHISELED_QUARTZ()->setAxis($in->readPillarAxis()),
|
||||
StringValues::CHISEL_TYPE_DEFAULT => VanillaBlocks::QUARTZ(), //TODO: axis intentionally ignored (useless)
|
||||
StringValues::CHISEL_TYPE_LINES => VanillaBlocks::QUARTZ_PILLAR()->setAxis($in->readPillarAxis()),
|
||||
StringValues::CHISEL_TYPE_SMOOTH => VanillaBlocks::SMOOTH_QUARTZ(), //TODO: axis intentionally ignored (useless)
|
||||
default => throw $in->badValueException(BlockStateNames::CHISEL_TYPE, $type),
|
||||
};
|
||||
});
|
||||
@ -791,17 +791,17 @@ final class BlockStateDeserializer{
|
||||
});
|
||||
$this->map(Ids::RED_FLOWER, function(BlockStateReader $in) : Block{
|
||||
return match($type = $in->readString(BlockStateNames::FLOWER_TYPE)){
|
||||
Values::FLOWER_TYPE_ALLIUM => VanillaBlocks::ALLIUM(),
|
||||
Values::FLOWER_TYPE_CORNFLOWER => VanillaBlocks::CORNFLOWER(),
|
||||
Values::FLOWER_TYPE_HOUSTONIA => VanillaBlocks::AZURE_BLUET(), //wtf ???
|
||||
Values::FLOWER_TYPE_LILY_OF_THE_VALLEY => VanillaBlocks::LILY_OF_THE_VALLEY(),
|
||||
Values::FLOWER_TYPE_ORCHID => VanillaBlocks::BLUE_ORCHID(),
|
||||
Values::FLOWER_TYPE_OXEYE => VanillaBlocks::OXEYE_DAISY(),
|
||||
Values::FLOWER_TYPE_POPPY => VanillaBlocks::POPPY(),
|
||||
Values::FLOWER_TYPE_TULIP_ORANGE => VanillaBlocks::ORANGE_TULIP(),
|
||||
Values::FLOWER_TYPE_TULIP_PINK => VanillaBlocks::PINK_TULIP(),
|
||||
Values::FLOWER_TYPE_TULIP_RED => VanillaBlocks::RED_TULIP(),
|
||||
Values::FLOWER_TYPE_TULIP_WHITE => VanillaBlocks::WHITE_TULIP(),
|
||||
StringValues::FLOWER_TYPE_ALLIUM => VanillaBlocks::ALLIUM(),
|
||||
StringValues::FLOWER_TYPE_CORNFLOWER => VanillaBlocks::CORNFLOWER(),
|
||||
StringValues::FLOWER_TYPE_HOUSTONIA => VanillaBlocks::AZURE_BLUET(), //wtf ???
|
||||
StringValues::FLOWER_TYPE_LILY_OF_THE_VALLEY => VanillaBlocks::LILY_OF_THE_VALLEY(),
|
||||
StringValues::FLOWER_TYPE_ORCHID => VanillaBlocks::BLUE_ORCHID(),
|
||||
StringValues::FLOWER_TYPE_OXEYE => VanillaBlocks::OXEYE_DAISY(),
|
||||
StringValues::FLOWER_TYPE_POPPY => VanillaBlocks::POPPY(),
|
||||
StringValues::FLOWER_TYPE_TULIP_ORANGE => VanillaBlocks::ORANGE_TULIP(),
|
||||
StringValues::FLOWER_TYPE_TULIP_PINK => VanillaBlocks::PINK_TULIP(),
|
||||
StringValues::FLOWER_TYPE_TULIP_RED => VanillaBlocks::RED_TULIP(),
|
||||
StringValues::FLOWER_TYPE_TULIP_WHITE => VanillaBlocks::WHITE_TULIP(),
|
||||
default => throw $in->badValueException(BlockStateNames::FLOWER_TYPE, $type),
|
||||
};
|
||||
});
|
||||
@ -812,10 +812,10 @@ final class BlockStateDeserializer{
|
||||
$this->map(Ids::RED_NETHER_BRICK_STAIRS, fn(BlockStateReader $in) => Helper::decodeStairs(VanillaBlocks::RED_NETHER_BRICK_STAIRS(), $in));
|
||||
$this->map(Ids::RED_SANDSTONE, function(BlockStateReader $in) : Block{
|
||||
return match($type = $in->readString(BlockStateNames::SAND_STONE_TYPE)){
|
||||
Values::SAND_STONE_TYPE_CUT => VanillaBlocks::CUT_RED_SANDSTONE(),
|
||||
Values::SAND_STONE_TYPE_DEFAULT => VanillaBlocks::RED_SANDSTONE(),
|
||||
Values::SAND_STONE_TYPE_HEIROGLYPHS => VanillaBlocks::CHISELED_RED_SANDSTONE(),
|
||||
Values::SAND_STONE_TYPE_SMOOTH => VanillaBlocks::SMOOTH_RED_SANDSTONE(),
|
||||
StringValues::SAND_STONE_TYPE_CUT => VanillaBlocks::CUT_RED_SANDSTONE(),
|
||||
StringValues::SAND_STONE_TYPE_DEFAULT => VanillaBlocks::RED_SANDSTONE(),
|
||||
StringValues::SAND_STONE_TYPE_HEIROGLYPHS => VanillaBlocks::CHISELED_RED_SANDSTONE(),
|
||||
StringValues::SAND_STONE_TYPE_SMOOTH => VanillaBlocks::SMOOTH_RED_SANDSTONE(),
|
||||
default => throw $in->badValueException(BlockStateNames::SAND_STONE_TYPE, $type),
|
||||
};
|
||||
});
|
||||
@ -845,29 +845,29 @@ final class BlockStateDeserializer{
|
||||
$this->map(Ids::RESERVED6, fn() => VanillaBlocks::RESERVED6());
|
||||
$this->map(Ids::SAND, function(BlockStateReader $in) : Block{
|
||||
return match($value = $in->readString(BlockStateNames::SAND_TYPE)){
|
||||
Values::SAND_TYPE_NORMAL => VanillaBlocks::SAND(),
|
||||
Values::SAND_TYPE_RED => VanillaBlocks::RED_SAND(),
|
||||
StringValues::SAND_TYPE_NORMAL => VanillaBlocks::SAND(),
|
||||
StringValues::SAND_TYPE_RED => VanillaBlocks::RED_SAND(),
|
||||
default => throw $in->badValueException(BlockStateNames::SAND_TYPE, $value),
|
||||
};
|
||||
});
|
||||
$this->map(Ids::SANDSTONE, function(BlockStateReader $in) : Block{
|
||||
return match($type = $in->readString(BlockStateNames::SAND_STONE_TYPE)){
|
||||
Values::SAND_STONE_TYPE_CUT => VanillaBlocks::CUT_SANDSTONE(),
|
||||
Values::SAND_STONE_TYPE_DEFAULT => VanillaBlocks::SANDSTONE(),
|
||||
Values::SAND_STONE_TYPE_HEIROGLYPHS => VanillaBlocks::CHISELED_SANDSTONE(),
|
||||
Values::SAND_STONE_TYPE_SMOOTH => VanillaBlocks::SMOOTH_SANDSTONE(),
|
||||
StringValues::SAND_STONE_TYPE_CUT => VanillaBlocks::CUT_SANDSTONE(),
|
||||
StringValues::SAND_STONE_TYPE_DEFAULT => VanillaBlocks::SANDSTONE(),
|
||||
StringValues::SAND_STONE_TYPE_HEIROGLYPHS => VanillaBlocks::CHISELED_SANDSTONE(),
|
||||
StringValues::SAND_STONE_TYPE_SMOOTH => VanillaBlocks::SMOOTH_SANDSTONE(),
|
||||
default => throw $in->badValueException(BlockStateNames::SAND_STONE_TYPE, $type),
|
||||
};
|
||||
});
|
||||
$this->map(Ids::SANDSTONE_STAIRS, fn(BlockStateReader $in) => Helper::decodeStairs(VanillaBlocks::SANDSTONE_STAIRS(), $in));
|
||||
$this->map(Ids::SAPLING, function(BlockStateReader $in) : Block{
|
||||
return (match($type = $in->readString(BlockStateNames::SAPLING_TYPE)){
|
||||
Values::SAPLING_TYPE_ACACIA => VanillaBlocks::ACACIA_SAPLING(),
|
||||
Values::SAPLING_TYPE_BIRCH => VanillaBlocks::BIRCH_SAPLING(),
|
||||
Values::SAPLING_TYPE_DARK_OAK => VanillaBlocks::DARK_OAK_SAPLING(),
|
||||
Values::SAPLING_TYPE_JUNGLE => VanillaBlocks::JUNGLE_SAPLING(),
|
||||
Values::SAPLING_TYPE_OAK => VanillaBlocks::OAK_SAPLING(),
|
||||
Values::SAPLING_TYPE_SPRUCE => VanillaBlocks::SPRUCE_SAPLING(),
|
||||
StringValues::SAPLING_TYPE_ACACIA => VanillaBlocks::ACACIA_SAPLING(),
|
||||
StringValues::SAPLING_TYPE_BIRCH => VanillaBlocks::BIRCH_SAPLING(),
|
||||
StringValues::SAPLING_TYPE_DARK_OAK => VanillaBlocks::DARK_OAK_SAPLING(),
|
||||
StringValues::SAPLING_TYPE_JUNGLE => VanillaBlocks::JUNGLE_SAPLING(),
|
||||
StringValues::SAPLING_TYPE_OAK => VanillaBlocks::OAK_SAPLING(),
|
||||
StringValues::SAPLING_TYPE_SPRUCE => VanillaBlocks::SPRUCE_SAPLING(),
|
||||
default => throw $in->badValueException(BlockStateNames::SAPLING_TYPE, $type),
|
||||
})
|
||||
->setReady($in->readBool(BlockStateNames::AGE_BIT));
|
||||
@ -906,8 +906,8 @@ final class BlockStateDeserializer{
|
||||
$this->map(Ids::SOUL_SAND, fn() => VanillaBlocks::SOUL_SAND());
|
||||
$this->map(Ids::SPONGE, function(BlockStateReader $in) : Block{
|
||||
return VanillaBlocks::SPONGE()->setWet(match($type = $in->readString(BlockStateNames::SPONGE_TYPE)){
|
||||
Values::SPONGE_TYPE_DRY => false,
|
||||
Values::SPONGE_TYPE_WET => true,
|
||||
StringValues::SPONGE_TYPE_DRY => false,
|
||||
StringValues::SPONGE_TYPE_WET => true,
|
||||
default => throw $in->badValueException(BlockStateNames::SPONGE_TYPE, $type),
|
||||
});
|
||||
});
|
||||
@ -947,13 +947,13 @@ final class BlockStateDeserializer{
|
||||
});
|
||||
$this->map(Ids::STONE, function(BlockStateReader $in) : Block{
|
||||
return match($type = $in->readString(BlockStateNames::STONE_TYPE)){
|
||||
Values::STONE_TYPE_ANDESITE => VanillaBlocks::ANDESITE(),
|
||||
Values::STONE_TYPE_ANDESITE_SMOOTH => VanillaBlocks::POLISHED_ANDESITE(),
|
||||
Values::STONE_TYPE_DIORITE => VanillaBlocks::DIORITE(),
|
||||
Values::STONE_TYPE_DIORITE_SMOOTH => VanillaBlocks::POLISHED_DIORITE(),
|
||||
Values::STONE_TYPE_GRANITE => VanillaBlocks::GRANITE(),
|
||||
Values::STONE_TYPE_GRANITE_SMOOTH => VanillaBlocks::POLISHED_GRANITE(),
|
||||
Values::STONE_TYPE_STONE => VanillaBlocks::STONE(),
|
||||
StringValues::STONE_TYPE_ANDESITE => VanillaBlocks::ANDESITE(),
|
||||
StringValues::STONE_TYPE_ANDESITE_SMOOTH => VanillaBlocks::POLISHED_ANDESITE(),
|
||||
StringValues::STONE_TYPE_DIORITE => VanillaBlocks::DIORITE(),
|
||||
StringValues::STONE_TYPE_DIORITE_SMOOTH => VanillaBlocks::POLISHED_DIORITE(),
|
||||
StringValues::STONE_TYPE_GRANITE => VanillaBlocks::GRANITE(),
|
||||
StringValues::STONE_TYPE_GRANITE_SMOOTH => VanillaBlocks::POLISHED_GRANITE(),
|
||||
StringValues::STONE_TYPE_STONE => VanillaBlocks::STONE(),
|
||||
default => throw $in->badValueException(BlockStateNames::STONE_TYPE, $type),
|
||||
};
|
||||
});
|
||||
@ -967,11 +967,11 @@ final class BlockStateDeserializer{
|
||||
$this->map(Ids::STONE_STAIRS, fn(BlockStateReader $in) => Helper::decodeStairs(VanillaBlocks::COBBLESTONE_STAIRS(), $in));
|
||||
$this->map(Ids::STONEBRICK, function(BlockStateReader $in) : Block{
|
||||
return match($type = $in->readString(BlockStateNames::STONE_BRICK_TYPE)){
|
||||
Values::STONE_BRICK_TYPE_SMOOTH, //TODO: bug in vanilla
|
||||
Values::STONE_BRICK_TYPE_DEFAULT => VanillaBlocks::STONE_BRICKS(),
|
||||
Values::STONE_BRICK_TYPE_CHISELED => VanillaBlocks::CHISELED_STONE_BRICKS(),
|
||||
Values::STONE_BRICK_TYPE_CRACKED => VanillaBlocks::CRACKED_STONE_BRICKS(),
|
||||
Values::STONE_BRICK_TYPE_MOSSY => VanillaBlocks::MOSSY_STONE_BRICKS(),
|
||||
StringValues::STONE_BRICK_TYPE_SMOOTH, //TODO: bug in vanilla
|
||||
StringValues::STONE_BRICK_TYPE_DEFAULT => VanillaBlocks::STONE_BRICKS(),
|
||||
StringValues::STONE_BRICK_TYPE_CHISELED => VanillaBlocks::CHISELED_STONE_BRICKS(),
|
||||
StringValues::STONE_BRICK_TYPE_CRACKED => VanillaBlocks::CRACKED_STONE_BRICKS(),
|
||||
StringValues::STONE_BRICK_TYPE_MOSSY => VanillaBlocks::MOSSY_STONE_BRICKS(),
|
||||
default => throw $in->badValueException(BlockStateNames::STONE_BRICK_TYPE, $type),
|
||||
};
|
||||
});
|
||||
@ -1008,8 +1008,8 @@ final class BlockStateDeserializer{
|
||||
});
|
||||
$this->map(Ids::TALLGRASS, function(BlockStateReader $in) : Block{
|
||||
return match($type = $in->readString(BlockStateNames::TALL_GRASS_TYPE)){
|
||||
Values::TALL_GRASS_TYPE_DEFAULT, Values::TALL_GRASS_TYPE_SNOW, Values::TALL_GRASS_TYPE_TALL => VanillaBlocks::TALL_GRASS(),
|
||||
Values::TALL_GRASS_TYPE_FERN => VanillaBlocks::FERN(),
|
||||
StringValues::TALL_GRASS_TYPE_DEFAULT, StringValues::TALL_GRASS_TYPE_SNOW, StringValues::TALL_GRASS_TYPE_TALL => VanillaBlocks::TALL_GRASS(),
|
||||
StringValues::TALL_GRASS_TYPE_FERN => VanillaBlocks::FERN(),
|
||||
default => throw $in->badValueException(BlockStateNames::TALL_GRASS_TYPE, $type),
|
||||
};
|
||||
});
|
||||
@ -1078,12 +1078,12 @@ final class BlockStateDeserializer{
|
||||
//TODO: our impl doesn't support axis yet
|
||||
$stripped = $in->readBool(BlockStateNames::STRIPPED_BIT);
|
||||
return match($woodType = $in->readString(BlockStateNames::WOOD_TYPE)){
|
||||
Values::WOOD_TYPE_ACACIA => $stripped ? VanillaBlocks::STRIPPED_ACACIA_WOOD() : VanillaBlocks::ACACIA_WOOD(),
|
||||
Values::WOOD_TYPE_BIRCH => $stripped ? VanillaBlocks::STRIPPED_BIRCH_WOOD() : VanillaBlocks::BIRCH_WOOD(),
|
||||
Values::WOOD_TYPE_DARK_OAK => $stripped ? VanillaBlocks::STRIPPED_DARK_OAK_WOOD() : VanillaBlocks::DARK_OAK_WOOD(),
|
||||
Values::WOOD_TYPE_JUNGLE => $stripped ? VanillaBlocks::STRIPPED_JUNGLE_WOOD() : VanillaBlocks::JUNGLE_WOOD(),
|
||||
Values::WOOD_TYPE_OAK => $stripped ? VanillaBlocks::STRIPPED_OAK_WOOD() : VanillaBlocks::OAK_WOOD(),
|
||||
Values::WOOD_TYPE_SPRUCE => $stripped ? VanillaBlocks::STRIPPED_SPRUCE_WOOD() : VanillaBlocks::SPRUCE_WOOD(),
|
||||
StringValues::WOOD_TYPE_ACACIA => $stripped ? VanillaBlocks::STRIPPED_ACACIA_WOOD() : VanillaBlocks::ACACIA_WOOD(),
|
||||
StringValues::WOOD_TYPE_BIRCH => $stripped ? VanillaBlocks::STRIPPED_BIRCH_WOOD() : VanillaBlocks::BIRCH_WOOD(),
|
||||
StringValues::WOOD_TYPE_DARK_OAK => $stripped ? VanillaBlocks::STRIPPED_DARK_OAK_WOOD() : VanillaBlocks::DARK_OAK_WOOD(),
|
||||
StringValues::WOOD_TYPE_JUNGLE => $stripped ? VanillaBlocks::STRIPPED_JUNGLE_WOOD() : VanillaBlocks::JUNGLE_WOOD(),
|
||||
StringValues::WOOD_TYPE_OAK => $stripped ? VanillaBlocks::STRIPPED_OAK_WOOD() : VanillaBlocks::OAK_WOOD(),
|
||||
StringValues::WOOD_TYPE_SPRUCE => $stripped ? VanillaBlocks::STRIPPED_SPRUCE_WOOD() : VanillaBlocks::SPRUCE_WOOD(),
|
||||
default => throw $in->badValueException(BlockStateNames::WOOD_TYPE, $woodType),
|
||||
};
|
||||
});
|
||||
|
@ -42,7 +42,7 @@ use pocketmine\block\Stem;
|
||||
use pocketmine\block\Trapdoor;
|
||||
use pocketmine\block\VanillaBlocks;
|
||||
use pocketmine\block\Wall;
|
||||
use pocketmine\data\bedrock\blockstate\BlockStateValues as Values;
|
||||
use pocketmine\data\bedrock\blockstate\BlockStateStringValues as StringValues;
|
||||
use pocketmine\data\bedrock\MushroomBlockTypeIdMap;
|
||||
use pocketmine\math\Axis;
|
||||
use pocketmine\math\Facing;
|
||||
@ -184,14 +184,14 @@ final class BlockStateDeserializerHelper{
|
||||
public static function mapStoneSlab1Type(BlockStateReader $in) : Slab{
|
||||
//* stone_slab_type (StringTag) = brick, cobblestone, nether_brick, quartz, sandstone, smooth_stone, stone_brick, wood
|
||||
return match($type = $in->readString(BlockStateNames::STONE_SLAB_TYPE)){
|
||||
Values::STONE_SLAB_TYPE_BRICK => VanillaBlocks::BRICK_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_COBBLESTONE => VanillaBlocks::COBBLESTONE_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_NETHER_BRICK => VanillaBlocks::NETHER_BRICK_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_QUARTZ => VanillaBlocks::QUARTZ_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_SANDSTONE => VanillaBlocks::SANDSTONE_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_SMOOTH_STONE => VanillaBlocks::SMOOTH_STONE_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_STONE_BRICK => VanillaBlocks::STONE_BRICK_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_WOOD => VanillaBlocks::FAKE_WOODEN_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_BRICK => VanillaBlocks::BRICK_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_COBBLESTONE => VanillaBlocks::COBBLESTONE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_NETHER_BRICK => VanillaBlocks::NETHER_BRICK_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_QUARTZ => VanillaBlocks::QUARTZ_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_SANDSTONE => VanillaBlocks::SANDSTONE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_SMOOTH_STONE => VanillaBlocks::SMOOTH_STONE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_STONE_BRICK => VanillaBlocks::STONE_BRICK_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_WOOD => VanillaBlocks::FAKE_WOODEN_SLAB(),
|
||||
default => throw $in->badValueException(BlockStateNames::STONE_SLAB_TYPE, $type),
|
||||
};
|
||||
}
|
||||
@ -200,14 +200,14 @@ final class BlockStateDeserializerHelper{
|
||||
public static function mapStoneSlab2Type(BlockStateReader $in) : Slab{
|
||||
// * stone_slab_type_2 (StringTag) = mossy_cobblestone, prismarine_brick, prismarine_dark, prismarine_rough, purpur, red_nether_brick, red_sandstone, smooth_sandstone
|
||||
return match($type = $in->readString(BlockStateNames::STONE_SLAB_TYPE_2)){
|
||||
Values::STONE_SLAB_TYPE_2_MOSSY_COBBLESTONE => VanillaBlocks::MOSSY_COBBLESTONE_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_2_PRISMARINE_BRICK => VanillaBlocks::PRISMARINE_BRICKS_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_2_PRISMARINE_DARK => VanillaBlocks::DARK_PRISMARINE_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_2_PRISMARINE_ROUGH => VanillaBlocks::PRISMARINE_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_2_PURPUR => VanillaBlocks::PURPUR_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_2_RED_NETHER_BRICK => VanillaBlocks::RED_NETHER_BRICK_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_2_RED_SANDSTONE => VanillaBlocks::RED_SANDSTONE_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_2_SMOOTH_SANDSTONE => VanillaBlocks::SMOOTH_SANDSTONE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_2_MOSSY_COBBLESTONE => VanillaBlocks::MOSSY_COBBLESTONE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_2_PRISMARINE_BRICK => VanillaBlocks::PRISMARINE_BRICKS_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_2_PRISMARINE_DARK => VanillaBlocks::DARK_PRISMARINE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_2_PRISMARINE_ROUGH => VanillaBlocks::PRISMARINE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_2_PURPUR => VanillaBlocks::PURPUR_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_2_RED_NETHER_BRICK => VanillaBlocks::RED_NETHER_BRICK_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_2_RED_SANDSTONE => VanillaBlocks::RED_SANDSTONE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_2_SMOOTH_SANDSTONE => VanillaBlocks::SMOOTH_SANDSTONE_SLAB(),
|
||||
default => throw $in->badValueException(BlockStateNames::STONE_SLAB_TYPE_2, $type),
|
||||
};
|
||||
}
|
||||
@ -216,14 +216,14 @@ final class BlockStateDeserializerHelper{
|
||||
public static function mapStoneSlab3Type(BlockStateReader $in) : Slab{
|
||||
// * stone_slab_type_3 (StringTag) = andesite, diorite, end_stone_brick, granite, polished_andesite, polished_diorite, polished_granite, smooth_red_sandstone
|
||||
return match($type = $in->readString(BlockStateNames::STONE_SLAB_TYPE_3)){
|
||||
Values::STONE_SLAB_TYPE_3_ANDESITE => VanillaBlocks::ANDESITE_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_3_DIORITE => VanillaBlocks::DIORITE_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_3_END_STONE_BRICK => VanillaBlocks::END_STONE_BRICK_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_3_GRANITE => VanillaBlocks::GRANITE_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_3_POLISHED_ANDESITE => VanillaBlocks::POLISHED_ANDESITE_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_3_POLISHED_DIORITE => VanillaBlocks::POLISHED_DIORITE_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_3_POLISHED_GRANITE => VanillaBlocks::POLISHED_GRANITE_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_3_SMOOTH_RED_SANDSTONE => VanillaBlocks::SMOOTH_RED_SANDSTONE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_3_ANDESITE => VanillaBlocks::ANDESITE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_3_DIORITE => VanillaBlocks::DIORITE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_3_END_STONE_BRICK => VanillaBlocks::END_STONE_BRICK_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_3_GRANITE => VanillaBlocks::GRANITE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_3_POLISHED_ANDESITE => VanillaBlocks::POLISHED_ANDESITE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_3_POLISHED_DIORITE => VanillaBlocks::POLISHED_DIORITE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_3_POLISHED_GRANITE => VanillaBlocks::POLISHED_GRANITE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_3_SMOOTH_RED_SANDSTONE => VanillaBlocks::SMOOTH_RED_SANDSTONE_SLAB(),
|
||||
default => throw $in->badValueException(BlockStateNames::STONE_SLAB_TYPE_3, $type),
|
||||
};
|
||||
}
|
||||
@ -232,11 +232,11 @@ final class BlockStateDeserializerHelper{
|
||||
public static function mapStoneSlab4Type(BlockStateReader $in) : Slab{
|
||||
// * stone_slab_type_4 (StringTag) = cut_red_sandstone, cut_sandstone, mossy_stone_brick, smooth_quartz, stone
|
||||
return match($type = $in->readString(BlockStateNames::STONE_SLAB_TYPE_4)){
|
||||
Values::STONE_SLAB_TYPE_4_CUT_RED_SANDSTONE => VanillaBlocks::CUT_RED_SANDSTONE_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_4_CUT_SANDSTONE => VanillaBlocks::CUT_SANDSTONE_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_4_MOSSY_STONE_BRICK => VanillaBlocks::MOSSY_STONE_BRICK_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_4_SMOOTH_QUARTZ => VanillaBlocks::SMOOTH_QUARTZ_SLAB(),
|
||||
Values::STONE_SLAB_TYPE_4_STONE => VanillaBlocks::STONE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_4_CUT_RED_SANDSTONE => VanillaBlocks::CUT_RED_SANDSTONE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_4_CUT_SANDSTONE => VanillaBlocks::CUT_SANDSTONE_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_4_MOSSY_STONE_BRICK => VanillaBlocks::MOSSY_STONE_BRICK_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_4_SMOOTH_QUARTZ => VanillaBlocks::SMOOTH_QUARTZ_SLAB(),
|
||||
StringValues::STONE_SLAB_TYPE_4_STONE => VanillaBlocks::STONE_SLAB(),
|
||||
default => throw $in->badValueException(BlockStateNames::STONE_SLAB_TYPE_4, $type),
|
||||
};
|
||||
}
|
||||
@ -245,12 +245,12 @@ final class BlockStateDeserializerHelper{
|
||||
public static function mapWoodenSlabType(BlockStateReader $in) : Slab{
|
||||
// * wood_type (StringTag) = acacia, birch, dark_oak, jungle, oak, spruce
|
||||
return match($type = $in->readString(BlockStateNames::WOOD_TYPE)){
|
||||
Values::WOOD_TYPE_ACACIA => VanillaBlocks::ACACIA_SLAB(),
|
||||
Values::WOOD_TYPE_BIRCH => VanillaBlocks::BIRCH_SLAB(),
|
||||
Values::WOOD_TYPE_DARK_OAK => VanillaBlocks::DARK_OAK_SLAB(),
|
||||
Values::WOOD_TYPE_JUNGLE => VanillaBlocks::JUNGLE_SLAB(),
|
||||
Values::WOOD_TYPE_OAK => VanillaBlocks::OAK_SLAB(),
|
||||
Values::WOOD_TYPE_SPRUCE => VanillaBlocks::SPRUCE_SLAB(),
|
||||
StringValues::WOOD_TYPE_ACACIA => VanillaBlocks::ACACIA_SLAB(),
|
||||
StringValues::WOOD_TYPE_BIRCH => VanillaBlocks::BIRCH_SLAB(),
|
||||
StringValues::WOOD_TYPE_DARK_OAK => VanillaBlocks::DARK_OAK_SLAB(),
|
||||
StringValues::WOOD_TYPE_JUNGLE => VanillaBlocks::JUNGLE_SLAB(),
|
||||
StringValues::WOOD_TYPE_OAK => VanillaBlocks::OAK_SLAB(),
|
||||
StringValues::WOOD_TYPE_SPRUCE => VanillaBlocks::SPRUCE_SLAB(),
|
||||
default => throw $in->badValueException(BlockStateNames::WOOD_TYPE, $type),
|
||||
};
|
||||
}
|
||||
|
@ -27,7 +27,7 @@ use pocketmine\block\utils\BellAttachmentType;
|
||||
use pocketmine\block\utils\CoralType;
|
||||
use pocketmine\block\utils\DyeColor;
|
||||
use pocketmine\block\utils\SlabType;
|
||||
use pocketmine\data\bedrock\blockstate\BlockStateValues as Values;
|
||||
use pocketmine\data\bedrock\blockstate\BlockStateStringValues as StringValues;
|
||||
use pocketmine\math\Axis;
|
||||
use pocketmine\math\Facing;
|
||||
use pocketmine\nbt\tag\ByteTag;
|
||||
@ -161,22 +161,22 @@ final class BlockStateReader{
|
||||
public function readColor() : DyeColor{
|
||||
// * color (StringTag) = black, blue, brown, cyan, gray, green, light_blue, lime, magenta, orange, pink, purple, red, silver, white, yellow
|
||||
return match($color = $this->readString(BlockStateNames::COLOR)){
|
||||
Values::COLOR_BLACK => DyeColor::BLACK(),
|
||||
Values::COLOR_BLUE => DyeColor::BLUE(),
|
||||
Values::COLOR_BROWN => DyeColor::BROWN(),
|
||||
Values::COLOR_CYAN => DyeColor::CYAN(),
|
||||
Values::COLOR_GRAY => DyeColor::GRAY(),
|
||||
Values::COLOR_GREEN => DyeColor::GREEN(),
|
||||
Values::COLOR_LIGHT_BLUE => DyeColor::LIGHT_BLUE(),
|
||||
Values::COLOR_LIME => DyeColor::LIME(),
|
||||
Values::COLOR_MAGENTA => DyeColor::MAGENTA(),
|
||||
Values::COLOR_ORANGE => DyeColor::ORANGE(),
|
||||
Values::COLOR_PINK => DyeColor::PINK(),
|
||||
Values::COLOR_PURPLE => DyeColor::PURPLE(),
|
||||
Values::COLOR_RED => DyeColor::RED(),
|
||||
Values::COLOR_SILVER => DyeColor::LIGHT_GRAY(),
|
||||
Values::COLOR_WHITE => DyeColor::WHITE(),
|
||||
Values::COLOR_YELLOW => DyeColor::YELLOW(),
|
||||
StringValues::COLOR_BLACK => DyeColor::BLACK(),
|
||||
StringValues::COLOR_BLUE => DyeColor::BLUE(),
|
||||
StringValues::COLOR_BROWN => DyeColor::BROWN(),
|
||||
StringValues::COLOR_CYAN => DyeColor::CYAN(),
|
||||
StringValues::COLOR_GRAY => DyeColor::GRAY(),
|
||||
StringValues::COLOR_GREEN => DyeColor::GREEN(),
|
||||
StringValues::COLOR_LIGHT_BLUE => DyeColor::LIGHT_BLUE(),
|
||||
StringValues::COLOR_LIME => DyeColor::LIME(),
|
||||
StringValues::COLOR_MAGENTA => DyeColor::MAGENTA(),
|
||||
StringValues::COLOR_ORANGE => DyeColor::ORANGE(),
|
||||
StringValues::COLOR_PINK => DyeColor::PINK(),
|
||||
StringValues::COLOR_PURPLE => DyeColor::PURPLE(),
|
||||
StringValues::COLOR_RED => DyeColor::RED(),
|
||||
StringValues::COLOR_SILVER => DyeColor::LIGHT_GRAY(),
|
||||
StringValues::COLOR_WHITE => DyeColor::WHITE(),
|
||||
StringValues::COLOR_YELLOW => DyeColor::YELLOW(),
|
||||
default => throw $this->badValueException(BlockStateNames::COLOR, $color),
|
||||
};
|
||||
}
|
||||
@ -215,9 +215,9 @@ final class BlockStateReader{
|
||||
public function readPillarAxis() : int{
|
||||
$rawValue = $this->readString(BlockStateNames::PILLAR_AXIS);
|
||||
$value = [
|
||||
Values::PILLAR_AXIS_X => Axis::X,
|
||||
Values::PILLAR_AXIS_Y => Axis::Y,
|
||||
Values::PILLAR_AXIS_Z => Axis::Z
|
||||
StringValues::PILLAR_AXIS_X => Axis::X,
|
||||
StringValues::PILLAR_AXIS_Y => Axis::Y,
|
||||
StringValues::PILLAR_AXIS_Z => Axis::Z
|
||||
][$rawValue] ?? null;
|
||||
if($value === null){
|
||||
throw $this->badValueException(BlockStateNames::PILLAR_AXIS, $rawValue, "Invalid axis value");
|
||||
@ -236,12 +236,12 @@ final class BlockStateReader{
|
||||
*/
|
||||
public function readTorchFacing() : int{
|
||||
return match($rawValue = $this->readString(BlockStateNames::TORCH_FACING_DIRECTION)){
|
||||
Values::TORCH_FACING_DIRECTION_EAST => Facing::EAST,
|
||||
Values::TORCH_FACING_DIRECTION_NORTH => Facing::NORTH,
|
||||
Values::TORCH_FACING_DIRECTION_SOUTH => Facing::SOUTH,
|
||||
Values::TORCH_FACING_DIRECTION_TOP => Facing::UP,
|
||||
Values::TORCH_FACING_DIRECTION_UNKNOWN => Facing::UP, //should be illegal, but 1.13 allows it
|
||||
Values::TORCH_FACING_DIRECTION_WEST => Facing::WEST,
|
||||
StringValues::TORCH_FACING_DIRECTION_EAST => Facing::EAST,
|
||||
StringValues::TORCH_FACING_DIRECTION_NORTH => Facing::NORTH,
|
||||
StringValues::TORCH_FACING_DIRECTION_SOUTH => Facing::SOUTH,
|
||||
StringValues::TORCH_FACING_DIRECTION_TOP => Facing::UP,
|
||||
StringValues::TORCH_FACING_DIRECTION_UNKNOWN => Facing::UP, //should be illegal, but 1.13 allows it
|
||||
StringValues::TORCH_FACING_DIRECTION_WEST => Facing::WEST,
|
||||
default => throw $this->badValueException(BlockStateNames::TORCH_FACING_DIRECTION, $rawValue, "Invalid torch facing"),
|
||||
};
|
||||
}
|
||||
@ -249,11 +249,11 @@ final class BlockStateReader{
|
||||
/** @throws BlockStateDeserializeException */
|
||||
public function readCoralType() : CoralType{
|
||||
return match($type = $this->readString(BlockStateNames::CORAL_COLOR)){
|
||||
Values::CORAL_COLOR_BLUE => CoralType::TUBE(),
|
||||
Values::CORAL_COLOR_PINK => CoralType::BRAIN(),
|
||||
Values::CORAL_COLOR_PURPLE => CoralType::BUBBLE(),
|
||||
Values::CORAL_COLOR_RED => CoralType::FIRE(),
|
||||
Values::CORAL_COLOR_YELLOW => CoralType::HORN(),
|
||||
StringValues::CORAL_COLOR_BLUE => CoralType::TUBE(),
|
||||
StringValues::CORAL_COLOR_PINK => CoralType::BRAIN(),
|
||||
StringValues::CORAL_COLOR_PURPLE => CoralType::BUBBLE(),
|
||||
StringValues::CORAL_COLOR_RED => CoralType::FIRE(),
|
||||
StringValues::CORAL_COLOR_YELLOW => CoralType::HORN(),
|
||||
default => throw $this->badValueException(BlockStateNames::CORAL_COLOR, $type),
|
||||
};
|
||||
}
|
||||
@ -261,10 +261,10 @@ final class BlockStateReader{
|
||||
/** @throws BlockStateDeserializeException */
|
||||
public function readBellAttachmentType() : BellAttachmentType{
|
||||
return match($type = $this->readString(BlockStateNames::ATTACHMENT)){
|
||||
Values::ATTACHMENT_HANGING => BellAttachmentType::CEILING(),
|
||||
Values::ATTACHMENT_STANDING => BellAttachmentType::FLOOR(),
|
||||
Values::ATTACHMENT_SIDE => BellAttachmentType::ONE_WALL(),
|
||||
Values::ATTACHMENT_MULTIPLE => BellAttachmentType::TWO_WALLS(),
|
||||
StringValues::ATTACHMENT_HANGING => BellAttachmentType::CEILING(),
|
||||
StringValues::ATTACHMENT_STANDING => BellAttachmentType::FLOOR(),
|
||||
StringValues::ATTACHMENT_SIDE => BellAttachmentType::ONE_WALL(),
|
||||
StringValues::ATTACHMENT_MULTIPLE => BellAttachmentType::TWO_WALLS(),
|
||||
default => throw $this->badValueException(BlockStateNames::ATTACHMENT, $type),
|
||||
};
|
||||
}
|
||||
|
297
src/data/bedrock/blockstate/BlockStateStringValues.php
Normal file
297
src/data/bedrock/blockstate/BlockStateStringValues.php
Normal file
@ -0,0 +1,297 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
*
|
||||
* ____ _ _ __ __ _ __ __ ____
|
||||
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* @author PocketMine Team
|
||||
* @link http://www.pocketmine.net/
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\data\bedrock\blockstate;
|
||||
|
||||
final class BlockStateStringValues{
|
||||
|
||||
public const ATTACHMENT_HANGING = "hanging";
|
||||
public const ATTACHMENT_MULTIPLE = "multiple";
|
||||
public const ATTACHMENT_SIDE = "side";
|
||||
public const ATTACHMENT_STANDING = "standing";
|
||||
|
||||
public const BAMBOO_LEAF_SIZE_LARGE_LEAVES = "large_leaves";
|
||||
public const BAMBOO_LEAF_SIZE_NO_LEAVES = "no_leaves";
|
||||
public const BAMBOO_LEAF_SIZE_SMALL_LEAVES = "small_leaves";
|
||||
|
||||
public const BAMBOO_STALK_THICKNESS_THICK = "thick";
|
||||
public const BAMBOO_STALK_THICKNESS_THIN = "thin";
|
||||
|
||||
public const BIG_DRIPLEAF_TILT_FULL_TILT = "full_tilt";
|
||||
public const BIG_DRIPLEAF_TILT_NONE = "none";
|
||||
public const BIG_DRIPLEAF_TILT_PARTIAL_TILT = "partial_tilt";
|
||||
public const BIG_DRIPLEAF_TILT_UNSTABLE = "unstable";
|
||||
|
||||
public const CAULDRON_LIQUID_LAVA = "lava";
|
||||
public const CAULDRON_LIQUID_POWDER_SNOW = "powder_snow";
|
||||
public const CAULDRON_LIQUID_WATER = "water";
|
||||
|
||||
public const CHEMISTRY_TABLE_TYPE_COMPOUND_CREATOR = "compound_creator";
|
||||
public const CHEMISTRY_TABLE_TYPE_ELEMENT_CONSTRUCTOR = "element_constructor";
|
||||
public const CHEMISTRY_TABLE_TYPE_LAB_TABLE = "lab_table";
|
||||
public const CHEMISTRY_TABLE_TYPE_MATERIAL_REDUCER = "material_reducer";
|
||||
|
||||
public const CHISEL_TYPE_CHISELED = "chiseled";
|
||||
public const CHISEL_TYPE_DEFAULT = "default";
|
||||
public const CHISEL_TYPE_LINES = "lines";
|
||||
public const CHISEL_TYPE_SMOOTH = "smooth";
|
||||
|
||||
public const COLOR_BLACK = "black";
|
||||
public const COLOR_BLUE = "blue";
|
||||
public const COLOR_BROWN = "brown";
|
||||
public const COLOR_CYAN = "cyan";
|
||||
public const COLOR_GRAY = "gray";
|
||||
public const COLOR_GREEN = "green";
|
||||
public const COLOR_LIGHT_BLUE = "light_blue";
|
||||
public const COLOR_LIME = "lime";
|
||||
public const COLOR_MAGENTA = "magenta";
|
||||
public const COLOR_ORANGE = "orange";
|
||||
public const COLOR_PINK = "pink";
|
||||
public const COLOR_PURPLE = "purple";
|
||||
public const COLOR_RED = "red";
|
||||
public const COLOR_SILVER = "silver";
|
||||
public const COLOR_WHITE = "white";
|
||||
public const COLOR_YELLOW = "yellow";
|
||||
|
||||
public const CORAL_COLOR_BLUE = "blue";
|
||||
public const CORAL_COLOR_PINK = "pink";
|
||||
public const CORAL_COLOR_PURPLE = "purple";
|
||||
public const CORAL_COLOR_RED = "red";
|
||||
public const CORAL_COLOR_YELLOW = "yellow";
|
||||
|
||||
public const CRACKED_STATE_CRACKED = "cracked";
|
||||
public const CRACKED_STATE_MAX_CRACKED = "max_cracked";
|
||||
public const CRACKED_STATE_NO_CRACKS = "no_cracks";
|
||||
|
||||
public const DAMAGE_BROKEN = "broken";
|
||||
public const DAMAGE_SLIGHTLY_DAMAGED = "slightly_damaged";
|
||||
public const DAMAGE_UNDAMAGED = "undamaged";
|
||||
public const DAMAGE_VERY_DAMAGED = "very_damaged";
|
||||
|
||||
public const DIRT_TYPE_COARSE = "coarse";
|
||||
public const DIRT_TYPE_NORMAL = "normal";
|
||||
|
||||
public const DOUBLE_PLANT_TYPE_FERN = "fern";
|
||||
public const DOUBLE_PLANT_TYPE_GRASS = "grass";
|
||||
public const DOUBLE_PLANT_TYPE_PAEONIA = "paeonia";
|
||||
public const DOUBLE_PLANT_TYPE_ROSE = "rose";
|
||||
public const DOUBLE_PLANT_TYPE_SUNFLOWER = "sunflower";
|
||||
public const DOUBLE_PLANT_TYPE_SYRINGA = "syringa";
|
||||
|
||||
public const DRIPSTONE_THICKNESS_BASE = "base";
|
||||
public const DRIPSTONE_THICKNESS_FRUSTUM = "frustum";
|
||||
public const DRIPSTONE_THICKNESS_MERGE = "merge";
|
||||
public const DRIPSTONE_THICKNESS_MIDDLE = "middle";
|
||||
public const DRIPSTONE_THICKNESS_TIP = "tip";
|
||||
|
||||
public const FLOWER_TYPE_ALLIUM = "allium";
|
||||
public const FLOWER_TYPE_CORNFLOWER = "cornflower";
|
||||
public const FLOWER_TYPE_HOUSTONIA = "houstonia";
|
||||
public const FLOWER_TYPE_LILY_OF_THE_VALLEY = "lily_of_the_valley";
|
||||
public const FLOWER_TYPE_ORCHID = "orchid";
|
||||
public const FLOWER_TYPE_OXEYE = "oxeye";
|
||||
public const FLOWER_TYPE_POPPY = "poppy";
|
||||
public const FLOWER_TYPE_TULIP_ORANGE = "tulip_orange";
|
||||
public const FLOWER_TYPE_TULIP_PINK = "tulip_pink";
|
||||
public const FLOWER_TYPE_TULIP_RED = "tulip_red";
|
||||
public const FLOWER_TYPE_TULIP_WHITE = "tulip_white";
|
||||
|
||||
public const LEVER_DIRECTION_DOWN_EAST_WEST = "down_east_west";
|
||||
public const LEVER_DIRECTION_DOWN_NORTH_SOUTH = "down_north_south";
|
||||
public const LEVER_DIRECTION_EAST = "east";
|
||||
public const LEVER_DIRECTION_NORTH = "north";
|
||||
public const LEVER_DIRECTION_SOUTH = "south";
|
||||
public const LEVER_DIRECTION_UP_EAST_WEST = "up_east_west";
|
||||
public const LEVER_DIRECTION_UP_NORTH_SOUTH = "up_north_south";
|
||||
public const LEVER_DIRECTION_WEST = "west";
|
||||
|
||||
public const MONSTER_EGG_STONE_TYPE_CHISELED_STONE_BRICK = "chiseled_stone_brick";
|
||||
public const MONSTER_EGG_STONE_TYPE_COBBLESTONE = "cobblestone";
|
||||
public const MONSTER_EGG_STONE_TYPE_CRACKED_STONE_BRICK = "cracked_stone_brick";
|
||||
public const MONSTER_EGG_STONE_TYPE_MOSSY_STONE_BRICK = "mossy_stone_brick";
|
||||
public const MONSTER_EGG_STONE_TYPE_STONE = "stone";
|
||||
public const MONSTER_EGG_STONE_TYPE_STONE_BRICK = "stone_brick";
|
||||
|
||||
public const NEW_LEAF_TYPE_ACACIA = "acacia";
|
||||
public const NEW_LEAF_TYPE_DARK_OAK = "dark_oak";
|
||||
|
||||
public const NEW_LOG_TYPE_ACACIA = "acacia";
|
||||
public const NEW_LOG_TYPE_DARK_OAK = "dark_oak";
|
||||
|
||||
public const OLD_LEAF_TYPE_BIRCH = "birch";
|
||||
public const OLD_LEAF_TYPE_JUNGLE = "jungle";
|
||||
public const OLD_LEAF_TYPE_OAK = "oak";
|
||||
public const OLD_LEAF_TYPE_SPRUCE = "spruce";
|
||||
|
||||
public const OLD_LOG_TYPE_BIRCH = "birch";
|
||||
public const OLD_LOG_TYPE_JUNGLE = "jungle";
|
||||
public const OLD_LOG_TYPE_OAK = "oak";
|
||||
public const OLD_LOG_TYPE_SPRUCE = "spruce";
|
||||
|
||||
public const PILLAR_AXIS_X = "x";
|
||||
public const PILLAR_AXIS_Y = "y";
|
||||
public const PILLAR_AXIS_Z = "z";
|
||||
|
||||
public const PORTAL_AXIS_UNKNOWN = "unknown";
|
||||
public const PORTAL_AXIS_X = "x";
|
||||
public const PORTAL_AXIS_Z = "z";
|
||||
|
||||
public const PRISMARINE_BLOCK_TYPE_BRICKS = "bricks";
|
||||
public const PRISMARINE_BLOCK_TYPE_DARK = "dark";
|
||||
public const PRISMARINE_BLOCK_TYPE_DEFAULT = "default";
|
||||
|
||||
public const SAND_STONE_TYPE_CUT = "cut";
|
||||
public const SAND_STONE_TYPE_DEFAULT = "default";
|
||||
public const SAND_STONE_TYPE_HEIROGLYPHS = "heiroglyphs";
|
||||
public const SAND_STONE_TYPE_SMOOTH = "smooth";
|
||||
|
||||
public const SAND_TYPE_NORMAL = "normal";
|
||||
public const SAND_TYPE_RED = "red";
|
||||
|
||||
public const SAPLING_TYPE_ACACIA = "acacia";
|
||||
public const SAPLING_TYPE_BIRCH = "birch";
|
||||
public const SAPLING_TYPE_DARK_OAK = "dark_oak";
|
||||
public const SAPLING_TYPE_JUNGLE = "jungle";
|
||||
public const SAPLING_TYPE_OAK = "oak";
|
||||
public const SAPLING_TYPE_SPRUCE = "spruce";
|
||||
|
||||
public const SEA_GRASS_TYPE_DEFAULT = "default";
|
||||
public const SEA_GRASS_TYPE_DOUBLE_BOT = "double_bot";
|
||||
public const SEA_GRASS_TYPE_DOUBLE_TOP = "double_top";
|
||||
|
||||
public const SPONGE_TYPE_DRY = "dry";
|
||||
public const SPONGE_TYPE_WET = "wet";
|
||||
|
||||
public const STONE_BRICK_TYPE_CHISELED = "chiseled";
|
||||
public const STONE_BRICK_TYPE_CRACKED = "cracked";
|
||||
public const STONE_BRICK_TYPE_DEFAULT = "default";
|
||||
public const STONE_BRICK_TYPE_MOSSY = "mossy";
|
||||
public const STONE_BRICK_TYPE_SMOOTH = "smooth";
|
||||
|
||||
public const STONE_SLAB_TYPE_BRICK = "brick";
|
||||
public const STONE_SLAB_TYPE_COBBLESTONE = "cobblestone";
|
||||
public const STONE_SLAB_TYPE_NETHER_BRICK = "nether_brick";
|
||||
public const STONE_SLAB_TYPE_QUARTZ = "quartz";
|
||||
public const STONE_SLAB_TYPE_SANDSTONE = "sandstone";
|
||||
public const STONE_SLAB_TYPE_SMOOTH_STONE = "smooth_stone";
|
||||
public const STONE_SLAB_TYPE_STONE_BRICK = "stone_brick";
|
||||
public const STONE_SLAB_TYPE_WOOD = "wood";
|
||||
|
||||
public const STONE_SLAB_TYPE_2_MOSSY_COBBLESTONE = "mossy_cobblestone";
|
||||
public const STONE_SLAB_TYPE_2_PRISMARINE_BRICK = "prismarine_brick";
|
||||
public const STONE_SLAB_TYPE_2_PRISMARINE_DARK = "prismarine_dark";
|
||||
public const STONE_SLAB_TYPE_2_PRISMARINE_ROUGH = "prismarine_rough";
|
||||
public const STONE_SLAB_TYPE_2_PURPUR = "purpur";
|
||||
public const STONE_SLAB_TYPE_2_RED_NETHER_BRICK = "red_nether_brick";
|
||||
public const STONE_SLAB_TYPE_2_RED_SANDSTONE = "red_sandstone";
|
||||
public const STONE_SLAB_TYPE_2_SMOOTH_SANDSTONE = "smooth_sandstone";
|
||||
|
||||
public const STONE_SLAB_TYPE_3_ANDESITE = "andesite";
|
||||
public const STONE_SLAB_TYPE_3_DIORITE = "diorite";
|
||||
public const STONE_SLAB_TYPE_3_END_STONE_BRICK = "end_stone_brick";
|
||||
public const STONE_SLAB_TYPE_3_GRANITE = "granite";
|
||||
public const STONE_SLAB_TYPE_3_POLISHED_ANDESITE = "polished_andesite";
|
||||
public const STONE_SLAB_TYPE_3_POLISHED_DIORITE = "polished_diorite";
|
||||
public const STONE_SLAB_TYPE_3_POLISHED_GRANITE = "polished_granite";
|
||||
public const STONE_SLAB_TYPE_3_SMOOTH_RED_SANDSTONE = "smooth_red_sandstone";
|
||||
|
||||
public const STONE_SLAB_TYPE_4_CUT_RED_SANDSTONE = "cut_red_sandstone";
|
||||
public const STONE_SLAB_TYPE_4_CUT_SANDSTONE = "cut_sandstone";
|
||||
public const STONE_SLAB_TYPE_4_MOSSY_STONE_BRICK = "mossy_stone_brick";
|
||||
public const STONE_SLAB_TYPE_4_SMOOTH_QUARTZ = "smooth_quartz";
|
||||
public const STONE_SLAB_TYPE_4_STONE = "stone";
|
||||
|
||||
public const STONE_TYPE_ANDESITE = "andesite";
|
||||
public const STONE_TYPE_ANDESITE_SMOOTH = "andesite_smooth";
|
||||
public const STONE_TYPE_DIORITE = "diorite";
|
||||
public const STONE_TYPE_DIORITE_SMOOTH = "diorite_smooth";
|
||||
public const STONE_TYPE_GRANITE = "granite";
|
||||
public const STONE_TYPE_GRANITE_SMOOTH = "granite_smooth";
|
||||
public const STONE_TYPE_STONE = "stone";
|
||||
|
||||
public const STRUCTURE_BLOCK_TYPE_CORNER = "corner";
|
||||
public const STRUCTURE_BLOCK_TYPE_DATA = "data";
|
||||
public const STRUCTURE_BLOCK_TYPE_EXPORT = "export";
|
||||
public const STRUCTURE_BLOCK_TYPE_INVALID = "invalid";
|
||||
public const STRUCTURE_BLOCK_TYPE_LOAD = "load";
|
||||
public const STRUCTURE_BLOCK_TYPE_SAVE = "save";
|
||||
|
||||
public const STRUCTURE_VOID_TYPE_AIR = "air";
|
||||
public const STRUCTURE_VOID_TYPE_VOID = "void";
|
||||
|
||||
public const TALL_GRASS_TYPE_DEFAULT = "default";
|
||||
public const TALL_GRASS_TYPE_FERN = "fern";
|
||||
public const TALL_GRASS_TYPE_SNOW = "snow";
|
||||
public const TALL_GRASS_TYPE_TALL = "tall";
|
||||
|
||||
public const TORCH_FACING_DIRECTION_EAST = "east";
|
||||
public const TORCH_FACING_DIRECTION_NORTH = "north";
|
||||
public const TORCH_FACING_DIRECTION_SOUTH = "south";
|
||||
public const TORCH_FACING_DIRECTION_TOP = "top";
|
||||
public const TORCH_FACING_DIRECTION_UNKNOWN = "unknown";
|
||||
public const TORCH_FACING_DIRECTION_WEST = "west";
|
||||
|
||||
public const TURTLE_EGG_COUNT_FOUR_EGG = "four_egg";
|
||||
public const TURTLE_EGG_COUNT_ONE_EGG = "one_egg";
|
||||
public const TURTLE_EGG_COUNT_THREE_EGG = "three_egg";
|
||||
public const TURTLE_EGG_COUNT_TWO_EGG = "two_egg";
|
||||
|
||||
public const WALL_BLOCK_TYPE_ANDESITE = "andesite";
|
||||
public const WALL_BLOCK_TYPE_BRICK = "brick";
|
||||
public const WALL_BLOCK_TYPE_COBBLESTONE = "cobblestone";
|
||||
public const WALL_BLOCK_TYPE_DIORITE = "diorite";
|
||||
public const WALL_BLOCK_TYPE_END_BRICK = "end_brick";
|
||||
public const WALL_BLOCK_TYPE_GRANITE = "granite";
|
||||
public const WALL_BLOCK_TYPE_MOSSY_COBBLESTONE = "mossy_cobblestone";
|
||||
public const WALL_BLOCK_TYPE_MOSSY_STONE_BRICK = "mossy_stone_brick";
|
||||
public const WALL_BLOCK_TYPE_NETHER_BRICK = "nether_brick";
|
||||
public const WALL_BLOCK_TYPE_PRISMARINE = "prismarine";
|
||||
public const WALL_BLOCK_TYPE_RED_NETHER_BRICK = "red_nether_brick";
|
||||
public const WALL_BLOCK_TYPE_RED_SANDSTONE = "red_sandstone";
|
||||
public const WALL_BLOCK_TYPE_SANDSTONE = "sandstone";
|
||||
public const WALL_BLOCK_TYPE_STONE_BRICK = "stone_brick";
|
||||
|
||||
public const WALL_CONNECTION_TYPE_EAST_NONE = "none";
|
||||
public const WALL_CONNECTION_TYPE_EAST_SHORT = "short";
|
||||
public const WALL_CONNECTION_TYPE_EAST_TALL = "tall";
|
||||
|
||||
public const WALL_CONNECTION_TYPE_NORTH_NONE = "none";
|
||||
public const WALL_CONNECTION_TYPE_NORTH_SHORT = "short";
|
||||
public const WALL_CONNECTION_TYPE_NORTH_TALL = "tall";
|
||||
|
||||
public const WALL_CONNECTION_TYPE_SOUTH_NONE = "none";
|
||||
public const WALL_CONNECTION_TYPE_SOUTH_SHORT = "short";
|
||||
public const WALL_CONNECTION_TYPE_SOUTH_TALL = "tall";
|
||||
|
||||
public const WALL_CONNECTION_TYPE_WEST_NONE = "none";
|
||||
public const WALL_CONNECTION_TYPE_WEST_SHORT = "short";
|
||||
public const WALL_CONNECTION_TYPE_WEST_TALL = "tall";
|
||||
|
||||
public const WOOD_TYPE_ACACIA = "acacia";
|
||||
public const WOOD_TYPE_BIRCH = "birch";
|
||||
public const WOOD_TYPE_DARK_OAK = "dark_oak";
|
||||
public const WOOD_TYPE_JUNGLE = "jungle";
|
||||
public const WOOD_TYPE_OAK = "oak";
|
||||
public const WOOD_TYPE_SPRUCE = "spruce";
|
||||
|
||||
}
|
@ -1,863 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
*
|
||||
* ____ _ _ __ __ _ __ __ ____
|
||||
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* @author PocketMine Team
|
||||
* @link http://www.pocketmine.net/
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\data\bedrock\blockstate;
|
||||
|
||||
final class BlockStateValues{
|
||||
|
||||
public const ACTIVE_0 = 0;
|
||||
public const ACTIVE_1 = 1;
|
||||
|
||||
public const AGE_0 = 0;
|
||||
public const AGE_1 = 1;
|
||||
public const AGE_2 = 2;
|
||||
public const AGE_3 = 3;
|
||||
public const AGE_4 = 4;
|
||||
public const AGE_5 = 5;
|
||||
public const AGE_6 = 6;
|
||||
public const AGE_7 = 7;
|
||||
public const AGE_8 = 8;
|
||||
public const AGE_9 = 9;
|
||||
public const AGE_10 = 10;
|
||||
public const AGE_11 = 11;
|
||||
public const AGE_12 = 12;
|
||||
public const AGE_13 = 13;
|
||||
public const AGE_14 = 14;
|
||||
public const AGE_15 = 15;
|
||||
|
||||
public const AGE_BIT_0 = 0;
|
||||
public const AGE_BIT_1 = 1;
|
||||
|
||||
public const ALLOW_UNDERWATER_BIT_0 = 0;
|
||||
public const ALLOW_UNDERWATER_BIT_1 = 1;
|
||||
|
||||
public const ATTACHED_BIT_0 = 0;
|
||||
public const ATTACHED_BIT_1 = 1;
|
||||
|
||||
public const ATTACHMENT_HANGING = "hanging";
|
||||
public const ATTACHMENT_MULTIPLE = "multiple";
|
||||
public const ATTACHMENT_SIDE = "side";
|
||||
public const ATTACHMENT_STANDING = "standing";
|
||||
|
||||
public const BAMBOO_LEAF_SIZE_LARGE_LEAVES = "large_leaves";
|
||||
public const BAMBOO_LEAF_SIZE_NO_LEAVES = "no_leaves";
|
||||
public const BAMBOO_LEAF_SIZE_SMALL_LEAVES = "small_leaves";
|
||||
|
||||
public const BAMBOO_STALK_THICKNESS_THICK = "thick";
|
||||
public const BAMBOO_STALK_THICKNESS_THIN = "thin";
|
||||
|
||||
public const BIG_DRIPLEAF_HEAD_0 = 0;
|
||||
public const BIG_DRIPLEAF_HEAD_1 = 1;
|
||||
|
||||
public const BIG_DRIPLEAF_TILT_FULL_TILT = "full_tilt";
|
||||
public const BIG_DRIPLEAF_TILT_NONE = "none";
|
||||
public const BIG_DRIPLEAF_TILT_PARTIAL_TILT = "partial_tilt";
|
||||
public const BIG_DRIPLEAF_TILT_UNSTABLE = "unstable";
|
||||
|
||||
public const BITE_COUNTER_0 = 0;
|
||||
public const BITE_COUNTER_1 = 1;
|
||||
public const BITE_COUNTER_2 = 2;
|
||||
public const BITE_COUNTER_3 = 3;
|
||||
public const BITE_COUNTER_4 = 4;
|
||||
public const BITE_COUNTER_5 = 5;
|
||||
public const BITE_COUNTER_6 = 6;
|
||||
|
||||
public const BLOCK_LIGHT_LEVEL_0 = 0;
|
||||
public const BLOCK_LIGHT_LEVEL_1 = 1;
|
||||
public const BLOCK_LIGHT_LEVEL_2 = 2;
|
||||
public const BLOCK_LIGHT_LEVEL_3 = 3;
|
||||
public const BLOCK_LIGHT_LEVEL_4 = 4;
|
||||
public const BLOCK_LIGHT_LEVEL_5 = 5;
|
||||
public const BLOCK_LIGHT_LEVEL_6 = 6;
|
||||
public const BLOCK_LIGHT_LEVEL_7 = 7;
|
||||
public const BLOCK_LIGHT_LEVEL_8 = 8;
|
||||
public const BLOCK_LIGHT_LEVEL_9 = 9;
|
||||
public const BLOCK_LIGHT_LEVEL_10 = 10;
|
||||
public const BLOCK_LIGHT_LEVEL_11 = 11;
|
||||
public const BLOCK_LIGHT_LEVEL_12 = 12;
|
||||
public const BLOCK_LIGHT_LEVEL_13 = 13;
|
||||
public const BLOCK_LIGHT_LEVEL_14 = 14;
|
||||
public const BLOCK_LIGHT_LEVEL_15 = 15;
|
||||
|
||||
public const BLOOM_0 = 0;
|
||||
public const BLOOM_1 = 1;
|
||||
|
||||
public const BREWING_STAND_SLOT_A_BIT_0 = 0;
|
||||
public const BREWING_STAND_SLOT_A_BIT_1 = 1;
|
||||
|
||||
public const BREWING_STAND_SLOT_B_BIT_0 = 0;
|
||||
public const BREWING_STAND_SLOT_B_BIT_1 = 1;
|
||||
|
||||
public const BREWING_STAND_SLOT_C_BIT_0 = 0;
|
||||
public const BREWING_STAND_SLOT_C_BIT_1 = 1;
|
||||
|
||||
public const BUTTON_PRESSED_BIT_0 = 0;
|
||||
public const BUTTON_PRESSED_BIT_1 = 1;
|
||||
|
||||
public const CANDLES_0 = 0;
|
||||
public const CANDLES_1 = 1;
|
||||
public const CANDLES_2 = 2;
|
||||
public const CANDLES_3 = 3;
|
||||
|
||||
public const CAULDRON_LIQUID_LAVA = "lava";
|
||||
public const CAULDRON_LIQUID_POWDER_SNOW = "powder_snow";
|
||||
public const CAULDRON_LIQUID_WATER = "water";
|
||||
|
||||
public const CHEMISTRY_TABLE_TYPE_COMPOUND_CREATOR = "compound_creator";
|
||||
public const CHEMISTRY_TABLE_TYPE_ELEMENT_CONSTRUCTOR = "element_constructor";
|
||||
public const CHEMISTRY_TABLE_TYPE_LAB_TABLE = "lab_table";
|
||||
public const CHEMISTRY_TABLE_TYPE_MATERIAL_REDUCER = "material_reducer";
|
||||
|
||||
public const CHISEL_TYPE_CHISELED = "chiseled";
|
||||
public const CHISEL_TYPE_DEFAULT = "default";
|
||||
public const CHISEL_TYPE_LINES = "lines";
|
||||
public const CHISEL_TYPE_SMOOTH = "smooth";
|
||||
|
||||
public const CLUSTER_COUNT_0 = 0;
|
||||
public const CLUSTER_COUNT_1 = 1;
|
||||
public const CLUSTER_COUNT_2 = 2;
|
||||
public const CLUSTER_COUNT_3 = 3;
|
||||
|
||||
public const COLOR_BLACK = "black";
|
||||
public const COLOR_BLUE = "blue";
|
||||
public const COLOR_BROWN = "brown";
|
||||
public const COLOR_CYAN = "cyan";
|
||||
public const COLOR_GRAY = "gray";
|
||||
public const COLOR_GREEN = "green";
|
||||
public const COLOR_LIGHT_BLUE = "light_blue";
|
||||
public const COLOR_LIME = "lime";
|
||||
public const COLOR_MAGENTA = "magenta";
|
||||
public const COLOR_ORANGE = "orange";
|
||||
public const COLOR_PINK = "pink";
|
||||
public const COLOR_PURPLE = "purple";
|
||||
public const COLOR_RED = "red";
|
||||
public const COLOR_SILVER = "silver";
|
||||
public const COLOR_WHITE = "white";
|
||||
public const COLOR_YELLOW = "yellow";
|
||||
|
||||
public const COLOR_BIT_0 = 0;
|
||||
public const COLOR_BIT_1 = 1;
|
||||
|
||||
public const COMPOSTER_FILL_LEVEL_0 = 0;
|
||||
public const COMPOSTER_FILL_LEVEL_1 = 1;
|
||||
public const COMPOSTER_FILL_LEVEL_2 = 2;
|
||||
public const COMPOSTER_FILL_LEVEL_3 = 3;
|
||||
public const COMPOSTER_FILL_LEVEL_4 = 4;
|
||||
public const COMPOSTER_FILL_LEVEL_5 = 5;
|
||||
public const COMPOSTER_FILL_LEVEL_6 = 6;
|
||||
public const COMPOSTER_FILL_LEVEL_7 = 7;
|
||||
public const COMPOSTER_FILL_LEVEL_8 = 8;
|
||||
|
||||
public const CONDITIONAL_BIT_0 = 0;
|
||||
public const CONDITIONAL_BIT_1 = 1;
|
||||
|
||||
public const CORAL_COLOR_BLUE = "blue";
|
||||
public const CORAL_COLOR_PINK = "pink";
|
||||
public const CORAL_COLOR_PURPLE = "purple";
|
||||
public const CORAL_COLOR_RED = "red";
|
||||
public const CORAL_COLOR_YELLOW = "yellow";
|
||||
|
||||
public const CORAL_DIRECTION_0 = 0;
|
||||
public const CORAL_DIRECTION_1 = 1;
|
||||
public const CORAL_DIRECTION_2 = 2;
|
||||
public const CORAL_DIRECTION_3 = 3;
|
||||
|
||||
public const CORAL_FAN_DIRECTION_0 = 0;
|
||||
public const CORAL_FAN_DIRECTION_1 = 1;
|
||||
|
||||
public const CORAL_HANG_TYPE_BIT_0 = 0;
|
||||
public const CORAL_HANG_TYPE_BIT_1 = 1;
|
||||
|
||||
public const COVERED_BIT_0 = 0;
|
||||
public const COVERED_BIT_1 = 1;
|
||||
|
||||
public const CRACKED_STATE_CRACKED = "cracked";
|
||||
public const CRACKED_STATE_MAX_CRACKED = "max_cracked";
|
||||
public const CRACKED_STATE_NO_CRACKS = "no_cracks";
|
||||
|
||||
public const DAMAGE_BROKEN = "broken";
|
||||
public const DAMAGE_SLIGHTLY_DAMAGED = "slightly_damaged";
|
||||
public const DAMAGE_UNDAMAGED = "undamaged";
|
||||
public const DAMAGE_VERY_DAMAGED = "very_damaged";
|
||||
|
||||
public const DEAD_BIT_0 = 0;
|
||||
public const DEAD_BIT_1 = 1;
|
||||
|
||||
public const DEPRECATED_0 = 0;
|
||||
public const DEPRECATED_1 = 1;
|
||||
public const DEPRECATED_2 = 2;
|
||||
public const DEPRECATED_3 = 3;
|
||||
|
||||
public const DIRECTION_0 = 0;
|
||||
public const DIRECTION_1 = 1;
|
||||
public const DIRECTION_2 = 2;
|
||||
public const DIRECTION_3 = 3;
|
||||
|
||||
public const DIRT_TYPE_COARSE = "coarse";
|
||||
public const DIRT_TYPE_NORMAL = "normal";
|
||||
|
||||
public const DISARMED_BIT_0 = 0;
|
||||
public const DISARMED_BIT_1 = 1;
|
||||
|
||||
public const DOOR_HINGE_BIT_0 = 0;
|
||||
public const DOOR_HINGE_BIT_1 = 1;
|
||||
|
||||
public const DOUBLE_PLANT_TYPE_FERN = "fern";
|
||||
public const DOUBLE_PLANT_TYPE_GRASS = "grass";
|
||||
public const DOUBLE_PLANT_TYPE_PAEONIA = "paeonia";
|
||||
public const DOUBLE_PLANT_TYPE_ROSE = "rose";
|
||||
public const DOUBLE_PLANT_TYPE_SUNFLOWER = "sunflower";
|
||||
public const DOUBLE_PLANT_TYPE_SYRINGA = "syringa";
|
||||
|
||||
public const DRAG_DOWN_0 = 0;
|
||||
public const DRAG_DOWN_1 = 1;
|
||||
|
||||
public const DRIPSTONE_THICKNESS_BASE = "base";
|
||||
public const DRIPSTONE_THICKNESS_FRUSTUM = "frustum";
|
||||
public const DRIPSTONE_THICKNESS_MERGE = "merge";
|
||||
public const DRIPSTONE_THICKNESS_MIDDLE = "middle";
|
||||
public const DRIPSTONE_THICKNESS_TIP = "tip";
|
||||
|
||||
public const END_PORTAL_EYE_BIT_0 = 0;
|
||||
public const END_PORTAL_EYE_BIT_1 = 1;
|
||||
|
||||
public const EXPLODE_BIT_0 = 0;
|
||||
public const EXPLODE_BIT_1 = 1;
|
||||
|
||||
public const EXTINGUISHED_0 = 0;
|
||||
public const EXTINGUISHED_1 = 1;
|
||||
|
||||
public const FACING_DIRECTION_0 = 0;
|
||||
public const FACING_DIRECTION_1 = 1;
|
||||
public const FACING_DIRECTION_2 = 2;
|
||||
public const FACING_DIRECTION_3 = 3;
|
||||
public const FACING_DIRECTION_4 = 4;
|
||||
public const FACING_DIRECTION_5 = 5;
|
||||
|
||||
public const FILL_LEVEL_0 = 0;
|
||||
public const FILL_LEVEL_1 = 1;
|
||||
public const FILL_LEVEL_2 = 2;
|
||||
public const FILL_LEVEL_3 = 3;
|
||||
public const FILL_LEVEL_4 = 4;
|
||||
public const FILL_LEVEL_5 = 5;
|
||||
public const FILL_LEVEL_6 = 6;
|
||||
|
||||
public const FLOWER_TYPE_ALLIUM = "allium";
|
||||
public const FLOWER_TYPE_CORNFLOWER = "cornflower";
|
||||
public const FLOWER_TYPE_HOUSTONIA = "houstonia";
|
||||
public const FLOWER_TYPE_LILY_OF_THE_VALLEY = "lily_of_the_valley";
|
||||
public const FLOWER_TYPE_ORCHID = "orchid";
|
||||
public const FLOWER_TYPE_OXEYE = "oxeye";
|
||||
public const FLOWER_TYPE_POPPY = "poppy";
|
||||
public const FLOWER_TYPE_TULIP_ORANGE = "tulip_orange";
|
||||
public const FLOWER_TYPE_TULIP_PINK = "tulip_pink";
|
||||
public const FLOWER_TYPE_TULIP_RED = "tulip_red";
|
||||
public const FLOWER_TYPE_TULIP_WHITE = "tulip_white";
|
||||
|
||||
public const GROUND_SIGN_DIRECTION_0 = 0;
|
||||
public const GROUND_SIGN_DIRECTION_1 = 1;
|
||||
public const GROUND_SIGN_DIRECTION_2 = 2;
|
||||
public const GROUND_SIGN_DIRECTION_3 = 3;
|
||||
public const GROUND_SIGN_DIRECTION_4 = 4;
|
||||
public const GROUND_SIGN_DIRECTION_5 = 5;
|
||||
public const GROUND_SIGN_DIRECTION_6 = 6;
|
||||
public const GROUND_SIGN_DIRECTION_7 = 7;
|
||||
public const GROUND_SIGN_DIRECTION_8 = 8;
|
||||
public const GROUND_SIGN_DIRECTION_9 = 9;
|
||||
public const GROUND_SIGN_DIRECTION_10 = 10;
|
||||
public const GROUND_SIGN_DIRECTION_11 = 11;
|
||||
public const GROUND_SIGN_DIRECTION_12 = 12;
|
||||
public const GROUND_SIGN_DIRECTION_13 = 13;
|
||||
public const GROUND_SIGN_DIRECTION_14 = 14;
|
||||
public const GROUND_SIGN_DIRECTION_15 = 15;
|
||||
|
||||
public const GROWING_PLANT_AGE_0 = 0;
|
||||
public const GROWING_PLANT_AGE_1 = 1;
|
||||
public const GROWING_PLANT_AGE_2 = 2;
|
||||
public const GROWING_PLANT_AGE_3 = 3;
|
||||
public const GROWING_PLANT_AGE_4 = 4;
|
||||
public const GROWING_PLANT_AGE_5 = 5;
|
||||
public const GROWING_PLANT_AGE_6 = 6;
|
||||
public const GROWING_PLANT_AGE_7 = 7;
|
||||
public const GROWING_PLANT_AGE_8 = 8;
|
||||
public const GROWING_PLANT_AGE_9 = 9;
|
||||
public const GROWING_PLANT_AGE_10 = 10;
|
||||
public const GROWING_PLANT_AGE_11 = 11;
|
||||
public const GROWING_PLANT_AGE_12 = 12;
|
||||
public const GROWING_PLANT_AGE_13 = 13;
|
||||
public const GROWING_PLANT_AGE_14 = 14;
|
||||
public const GROWING_PLANT_AGE_15 = 15;
|
||||
public const GROWING_PLANT_AGE_16 = 16;
|
||||
public const GROWING_PLANT_AGE_17 = 17;
|
||||
public const GROWING_PLANT_AGE_18 = 18;
|
||||
public const GROWING_PLANT_AGE_19 = 19;
|
||||
public const GROWING_PLANT_AGE_20 = 20;
|
||||
public const GROWING_PLANT_AGE_21 = 21;
|
||||
public const GROWING_PLANT_AGE_22 = 22;
|
||||
public const GROWING_PLANT_AGE_23 = 23;
|
||||
public const GROWING_PLANT_AGE_24 = 24;
|
||||
public const GROWING_PLANT_AGE_25 = 25;
|
||||
|
||||
public const GROWTH_0 = 0;
|
||||
public const GROWTH_1 = 1;
|
||||
public const GROWTH_2 = 2;
|
||||
public const GROWTH_3 = 3;
|
||||
public const GROWTH_4 = 4;
|
||||
public const GROWTH_5 = 5;
|
||||
public const GROWTH_6 = 6;
|
||||
public const GROWTH_7 = 7;
|
||||
|
||||
public const HANGING_0 = 0;
|
||||
public const HANGING_1 = 1;
|
||||
|
||||
public const HEAD_PIECE_BIT_0 = 0;
|
||||
public const HEAD_PIECE_BIT_1 = 1;
|
||||
|
||||
public const HEIGHT_0 = 0;
|
||||
public const HEIGHT_1 = 1;
|
||||
public const HEIGHT_2 = 2;
|
||||
public const HEIGHT_3 = 3;
|
||||
public const HEIGHT_4 = 4;
|
||||
public const HEIGHT_5 = 5;
|
||||
public const HEIGHT_6 = 6;
|
||||
public const HEIGHT_7 = 7;
|
||||
|
||||
public const HONEY_LEVEL_0 = 0;
|
||||
public const HONEY_LEVEL_1 = 1;
|
||||
public const HONEY_LEVEL_2 = 2;
|
||||
public const HONEY_LEVEL_3 = 3;
|
||||
public const HONEY_LEVEL_4 = 4;
|
||||
public const HONEY_LEVEL_5 = 5;
|
||||
|
||||
public const HUGE_MUSHROOM_BITS_0 = 0;
|
||||
public const HUGE_MUSHROOM_BITS_1 = 1;
|
||||
public const HUGE_MUSHROOM_BITS_2 = 2;
|
||||
public const HUGE_MUSHROOM_BITS_3 = 3;
|
||||
public const HUGE_MUSHROOM_BITS_4 = 4;
|
||||
public const HUGE_MUSHROOM_BITS_5 = 5;
|
||||
public const HUGE_MUSHROOM_BITS_6 = 6;
|
||||
public const HUGE_MUSHROOM_BITS_7 = 7;
|
||||
public const HUGE_MUSHROOM_BITS_8 = 8;
|
||||
public const HUGE_MUSHROOM_BITS_9 = 9;
|
||||
public const HUGE_MUSHROOM_BITS_10 = 10;
|
||||
public const HUGE_MUSHROOM_BITS_11 = 11;
|
||||
public const HUGE_MUSHROOM_BITS_12 = 12;
|
||||
public const HUGE_MUSHROOM_BITS_13 = 13;
|
||||
public const HUGE_MUSHROOM_BITS_14 = 14;
|
||||
public const HUGE_MUSHROOM_BITS_15 = 15;
|
||||
|
||||
public const IN_WALL_BIT_0 = 0;
|
||||
public const IN_WALL_BIT_1 = 1;
|
||||
|
||||
public const INFINIBURN_BIT_0 = 0;
|
||||
public const INFINIBURN_BIT_1 = 1;
|
||||
|
||||
public const ITEM_FRAME_MAP_BIT_0 = 0;
|
||||
public const ITEM_FRAME_MAP_BIT_1 = 1;
|
||||
|
||||
public const ITEM_FRAME_PHOTO_BIT_0 = 0;
|
||||
public const ITEM_FRAME_PHOTO_BIT_1 = 1;
|
||||
|
||||
public const KELP_AGE_0 = 0;
|
||||
public const KELP_AGE_1 = 1;
|
||||
public const KELP_AGE_2 = 2;
|
||||
public const KELP_AGE_3 = 3;
|
||||
public const KELP_AGE_4 = 4;
|
||||
public const KELP_AGE_5 = 5;
|
||||
public const KELP_AGE_6 = 6;
|
||||
public const KELP_AGE_7 = 7;
|
||||
public const KELP_AGE_8 = 8;
|
||||
public const KELP_AGE_9 = 9;
|
||||
public const KELP_AGE_10 = 10;
|
||||
public const KELP_AGE_11 = 11;
|
||||
public const KELP_AGE_12 = 12;
|
||||
public const KELP_AGE_13 = 13;
|
||||
public const KELP_AGE_14 = 14;
|
||||
public const KELP_AGE_15 = 15;
|
||||
public const KELP_AGE_16 = 16;
|
||||
public const KELP_AGE_17 = 17;
|
||||
public const KELP_AGE_18 = 18;
|
||||
public const KELP_AGE_19 = 19;
|
||||
public const KELP_AGE_20 = 20;
|
||||
public const KELP_AGE_21 = 21;
|
||||
public const KELP_AGE_22 = 22;
|
||||
public const KELP_AGE_23 = 23;
|
||||
public const KELP_AGE_24 = 24;
|
||||
public const KELP_AGE_25 = 25;
|
||||
|
||||
public const LEVER_DIRECTION_DOWN_EAST_WEST = "down_east_west";
|
||||
public const LEVER_DIRECTION_DOWN_NORTH_SOUTH = "down_north_south";
|
||||
public const LEVER_DIRECTION_EAST = "east";
|
||||
public const LEVER_DIRECTION_NORTH = "north";
|
||||
public const LEVER_DIRECTION_SOUTH = "south";
|
||||
public const LEVER_DIRECTION_UP_EAST_WEST = "up_east_west";
|
||||
public const LEVER_DIRECTION_UP_NORTH_SOUTH = "up_north_south";
|
||||
public const LEVER_DIRECTION_WEST = "west";
|
||||
|
||||
public const LIQUID_DEPTH_0 = 0;
|
||||
public const LIQUID_DEPTH_1 = 1;
|
||||
public const LIQUID_DEPTH_2 = 2;
|
||||
public const LIQUID_DEPTH_3 = 3;
|
||||
public const LIQUID_DEPTH_4 = 4;
|
||||
public const LIQUID_DEPTH_5 = 5;
|
||||
public const LIQUID_DEPTH_6 = 6;
|
||||
public const LIQUID_DEPTH_7 = 7;
|
||||
public const LIQUID_DEPTH_8 = 8;
|
||||
public const LIQUID_DEPTH_9 = 9;
|
||||
public const LIQUID_DEPTH_10 = 10;
|
||||
public const LIQUID_DEPTH_11 = 11;
|
||||
public const LIQUID_DEPTH_12 = 12;
|
||||
public const LIQUID_DEPTH_13 = 13;
|
||||
public const LIQUID_DEPTH_14 = 14;
|
||||
public const LIQUID_DEPTH_15 = 15;
|
||||
|
||||
public const LIT_0 = 0;
|
||||
public const LIT_1 = 1;
|
||||
|
||||
public const MOISTURIZED_AMOUNT_0 = 0;
|
||||
public const MOISTURIZED_AMOUNT_1 = 1;
|
||||
public const MOISTURIZED_AMOUNT_2 = 2;
|
||||
public const MOISTURIZED_AMOUNT_3 = 3;
|
||||
public const MOISTURIZED_AMOUNT_4 = 4;
|
||||
public const MOISTURIZED_AMOUNT_5 = 5;
|
||||
public const MOISTURIZED_AMOUNT_6 = 6;
|
||||
public const MOISTURIZED_AMOUNT_7 = 7;
|
||||
|
||||
public const MONSTER_EGG_STONE_TYPE_CHISELED_STONE_BRICK = "chiseled_stone_brick";
|
||||
public const MONSTER_EGG_STONE_TYPE_COBBLESTONE = "cobblestone";
|
||||
public const MONSTER_EGG_STONE_TYPE_CRACKED_STONE_BRICK = "cracked_stone_brick";
|
||||
public const MONSTER_EGG_STONE_TYPE_MOSSY_STONE_BRICK = "mossy_stone_brick";
|
||||
public const MONSTER_EGG_STONE_TYPE_STONE = "stone";
|
||||
public const MONSTER_EGG_STONE_TYPE_STONE_BRICK = "stone_brick";
|
||||
|
||||
public const MULTI_FACE_DIRECTION_BITS_0 = 0;
|
||||
public const MULTI_FACE_DIRECTION_BITS_1 = 1;
|
||||
public const MULTI_FACE_DIRECTION_BITS_2 = 2;
|
||||
public const MULTI_FACE_DIRECTION_BITS_3 = 3;
|
||||
public const MULTI_FACE_DIRECTION_BITS_4 = 4;
|
||||
public const MULTI_FACE_DIRECTION_BITS_5 = 5;
|
||||
public const MULTI_FACE_DIRECTION_BITS_6 = 6;
|
||||
public const MULTI_FACE_DIRECTION_BITS_7 = 7;
|
||||
public const MULTI_FACE_DIRECTION_BITS_8 = 8;
|
||||
public const MULTI_FACE_DIRECTION_BITS_9 = 9;
|
||||
public const MULTI_FACE_DIRECTION_BITS_10 = 10;
|
||||
public const MULTI_FACE_DIRECTION_BITS_11 = 11;
|
||||
public const MULTI_FACE_DIRECTION_BITS_12 = 12;
|
||||
public const MULTI_FACE_DIRECTION_BITS_13 = 13;
|
||||
public const MULTI_FACE_DIRECTION_BITS_14 = 14;
|
||||
public const MULTI_FACE_DIRECTION_BITS_15 = 15;
|
||||
public const MULTI_FACE_DIRECTION_BITS_16 = 16;
|
||||
public const MULTI_FACE_DIRECTION_BITS_17 = 17;
|
||||
public const MULTI_FACE_DIRECTION_BITS_18 = 18;
|
||||
public const MULTI_FACE_DIRECTION_BITS_19 = 19;
|
||||
public const MULTI_FACE_DIRECTION_BITS_20 = 20;
|
||||
public const MULTI_FACE_DIRECTION_BITS_21 = 21;
|
||||
public const MULTI_FACE_DIRECTION_BITS_22 = 22;
|
||||
public const MULTI_FACE_DIRECTION_BITS_23 = 23;
|
||||
public const MULTI_FACE_DIRECTION_BITS_24 = 24;
|
||||
public const MULTI_FACE_DIRECTION_BITS_25 = 25;
|
||||
public const MULTI_FACE_DIRECTION_BITS_26 = 26;
|
||||
public const MULTI_FACE_DIRECTION_BITS_27 = 27;
|
||||
public const MULTI_FACE_DIRECTION_BITS_28 = 28;
|
||||
public const MULTI_FACE_DIRECTION_BITS_29 = 29;
|
||||
public const MULTI_FACE_DIRECTION_BITS_30 = 30;
|
||||
public const MULTI_FACE_DIRECTION_BITS_31 = 31;
|
||||
public const MULTI_FACE_DIRECTION_BITS_32 = 32;
|
||||
public const MULTI_FACE_DIRECTION_BITS_33 = 33;
|
||||
public const MULTI_FACE_DIRECTION_BITS_34 = 34;
|
||||
public const MULTI_FACE_DIRECTION_BITS_35 = 35;
|
||||
public const MULTI_FACE_DIRECTION_BITS_36 = 36;
|
||||
public const MULTI_FACE_DIRECTION_BITS_37 = 37;
|
||||
public const MULTI_FACE_DIRECTION_BITS_38 = 38;
|
||||
public const MULTI_FACE_DIRECTION_BITS_39 = 39;
|
||||
public const MULTI_FACE_DIRECTION_BITS_40 = 40;
|
||||
public const MULTI_FACE_DIRECTION_BITS_41 = 41;
|
||||
public const MULTI_FACE_DIRECTION_BITS_42 = 42;
|
||||
public const MULTI_FACE_DIRECTION_BITS_43 = 43;
|
||||
public const MULTI_FACE_DIRECTION_BITS_44 = 44;
|
||||
public const MULTI_FACE_DIRECTION_BITS_45 = 45;
|
||||
public const MULTI_FACE_DIRECTION_BITS_46 = 46;
|
||||
public const MULTI_FACE_DIRECTION_BITS_47 = 47;
|
||||
public const MULTI_FACE_DIRECTION_BITS_48 = 48;
|
||||
public const MULTI_FACE_DIRECTION_BITS_49 = 49;
|
||||
public const MULTI_FACE_DIRECTION_BITS_50 = 50;
|
||||
public const MULTI_FACE_DIRECTION_BITS_51 = 51;
|
||||
public const MULTI_FACE_DIRECTION_BITS_52 = 52;
|
||||
public const MULTI_FACE_DIRECTION_BITS_53 = 53;
|
||||
public const MULTI_FACE_DIRECTION_BITS_54 = 54;
|
||||
public const MULTI_FACE_DIRECTION_BITS_55 = 55;
|
||||
public const MULTI_FACE_DIRECTION_BITS_56 = 56;
|
||||
public const MULTI_FACE_DIRECTION_BITS_57 = 57;
|
||||
public const MULTI_FACE_DIRECTION_BITS_58 = 58;
|
||||
public const MULTI_FACE_DIRECTION_BITS_59 = 59;
|
||||
public const MULTI_FACE_DIRECTION_BITS_60 = 60;
|
||||
public const MULTI_FACE_DIRECTION_BITS_61 = 61;
|
||||
public const MULTI_FACE_DIRECTION_BITS_62 = 62;
|
||||
public const MULTI_FACE_DIRECTION_BITS_63 = 63;
|
||||
|
||||
public const NEW_LEAF_TYPE_ACACIA = "acacia";
|
||||
public const NEW_LEAF_TYPE_DARK_OAK = "dark_oak";
|
||||
|
||||
public const NEW_LOG_TYPE_ACACIA = "acacia";
|
||||
public const NEW_LOG_TYPE_DARK_OAK = "dark_oak";
|
||||
|
||||
public const NO_DROP_BIT_0 = 0;
|
||||
public const NO_DROP_BIT_1 = 1;
|
||||
|
||||
public const OCCUPIED_BIT_0 = 0;
|
||||
public const OCCUPIED_BIT_1 = 1;
|
||||
|
||||
public const OLD_LEAF_TYPE_BIRCH = "birch";
|
||||
public const OLD_LEAF_TYPE_JUNGLE = "jungle";
|
||||
public const OLD_LEAF_TYPE_OAK = "oak";
|
||||
public const OLD_LEAF_TYPE_SPRUCE = "spruce";
|
||||
|
||||
public const OLD_LOG_TYPE_BIRCH = "birch";
|
||||
public const OLD_LOG_TYPE_JUNGLE = "jungle";
|
||||
public const OLD_LOG_TYPE_OAK = "oak";
|
||||
public const OLD_LOG_TYPE_SPRUCE = "spruce";
|
||||
|
||||
public const OPEN_BIT_0 = 0;
|
||||
public const OPEN_BIT_1 = 1;
|
||||
|
||||
public const OUTPUT_LIT_BIT_0 = 0;
|
||||
public const OUTPUT_LIT_BIT_1 = 1;
|
||||
|
||||
public const OUTPUT_SUBTRACT_BIT_0 = 0;
|
||||
public const OUTPUT_SUBTRACT_BIT_1 = 1;
|
||||
|
||||
public const PERSISTENT_BIT_0 = 0;
|
||||
public const PERSISTENT_BIT_1 = 1;
|
||||
|
||||
public const PILLAR_AXIS_X = "x";
|
||||
public const PILLAR_AXIS_Y = "y";
|
||||
public const PILLAR_AXIS_Z = "z";
|
||||
|
||||
public const PORTAL_AXIS_UNKNOWN = "unknown";
|
||||
public const PORTAL_AXIS_X = "x";
|
||||
public const PORTAL_AXIS_Z = "z";
|
||||
|
||||
public const POWERED_BIT_0 = 0;
|
||||
public const POWERED_BIT_1 = 1;
|
||||
|
||||
public const PRISMARINE_BLOCK_TYPE_BRICKS = "bricks";
|
||||
public const PRISMARINE_BLOCK_TYPE_DARK = "dark";
|
||||
public const PRISMARINE_BLOCK_TYPE_DEFAULT = "default";
|
||||
|
||||
public const RAIL_DATA_BIT_0 = 0;
|
||||
public const RAIL_DATA_BIT_1 = 1;
|
||||
|
||||
public const RAIL_DIRECTION_0 = 0;
|
||||
public const RAIL_DIRECTION_1 = 1;
|
||||
public const RAIL_DIRECTION_2 = 2;
|
||||
public const RAIL_DIRECTION_3 = 3;
|
||||
public const RAIL_DIRECTION_4 = 4;
|
||||
public const RAIL_DIRECTION_5 = 5;
|
||||
public const RAIL_DIRECTION_6 = 6;
|
||||
public const RAIL_DIRECTION_7 = 7;
|
||||
public const RAIL_DIRECTION_8 = 8;
|
||||
public const RAIL_DIRECTION_9 = 9;
|
||||
|
||||
public const REDSTONE_SIGNAL_0 = 0;
|
||||
public const REDSTONE_SIGNAL_1 = 1;
|
||||
public const REDSTONE_SIGNAL_2 = 2;
|
||||
public const REDSTONE_SIGNAL_3 = 3;
|
||||
public const REDSTONE_SIGNAL_4 = 4;
|
||||
public const REDSTONE_SIGNAL_5 = 5;
|
||||
public const REDSTONE_SIGNAL_6 = 6;
|
||||
public const REDSTONE_SIGNAL_7 = 7;
|
||||
public const REDSTONE_SIGNAL_8 = 8;
|
||||
public const REDSTONE_SIGNAL_9 = 9;
|
||||
public const REDSTONE_SIGNAL_10 = 10;
|
||||
public const REDSTONE_SIGNAL_11 = 11;
|
||||
public const REDSTONE_SIGNAL_12 = 12;
|
||||
public const REDSTONE_SIGNAL_13 = 13;
|
||||
public const REDSTONE_SIGNAL_14 = 14;
|
||||
public const REDSTONE_SIGNAL_15 = 15;
|
||||
|
||||
public const REPEATER_DELAY_0 = 0;
|
||||
public const REPEATER_DELAY_1 = 1;
|
||||
public const REPEATER_DELAY_2 = 2;
|
||||
public const REPEATER_DELAY_3 = 3;
|
||||
|
||||
public const RESPAWN_ANCHOR_CHARGE_0 = 0;
|
||||
public const RESPAWN_ANCHOR_CHARGE_1 = 1;
|
||||
public const RESPAWN_ANCHOR_CHARGE_2 = 2;
|
||||
public const RESPAWN_ANCHOR_CHARGE_3 = 3;
|
||||
public const RESPAWN_ANCHOR_CHARGE_4 = 4;
|
||||
|
||||
public const ROTATION_0 = 0;
|
||||
public const ROTATION_1 = 1;
|
||||
public const ROTATION_2 = 2;
|
||||
public const ROTATION_3 = 3;
|
||||
|
||||
public const SAND_STONE_TYPE_CUT = "cut";
|
||||
public const SAND_STONE_TYPE_DEFAULT = "default";
|
||||
public const SAND_STONE_TYPE_HEIROGLYPHS = "heiroglyphs";
|
||||
public const SAND_STONE_TYPE_SMOOTH = "smooth";
|
||||
|
||||
public const SAND_TYPE_NORMAL = "normal";
|
||||
public const SAND_TYPE_RED = "red";
|
||||
|
||||
public const SAPLING_TYPE_ACACIA = "acacia";
|
||||
public const SAPLING_TYPE_BIRCH = "birch";
|
||||
public const SAPLING_TYPE_DARK_OAK = "dark_oak";
|
||||
public const SAPLING_TYPE_JUNGLE = "jungle";
|
||||
public const SAPLING_TYPE_OAK = "oak";
|
||||
public const SAPLING_TYPE_SPRUCE = "spruce";
|
||||
|
||||
public const SEA_GRASS_TYPE_DEFAULT = "default";
|
||||
public const SEA_GRASS_TYPE_DOUBLE_BOT = "double_bot";
|
||||
public const SEA_GRASS_TYPE_DOUBLE_TOP = "double_top";
|
||||
|
||||
public const SPONGE_TYPE_DRY = "dry";
|
||||
public const SPONGE_TYPE_WET = "wet";
|
||||
|
||||
public const STABILITY_0 = 0;
|
||||
public const STABILITY_1 = 1;
|
||||
public const STABILITY_2 = 2;
|
||||
public const STABILITY_3 = 3;
|
||||
public const STABILITY_4 = 4;
|
||||
public const STABILITY_5 = 5;
|
||||
public const STABILITY_6 = 6;
|
||||
public const STABILITY_7 = 7;
|
||||
|
||||
public const STABILITY_CHECK_0 = 0;
|
||||
public const STABILITY_CHECK_1 = 1;
|
||||
|
||||
public const STONE_BRICK_TYPE_CHISELED = "chiseled";
|
||||
public const STONE_BRICK_TYPE_CRACKED = "cracked";
|
||||
public const STONE_BRICK_TYPE_DEFAULT = "default";
|
||||
public const STONE_BRICK_TYPE_MOSSY = "mossy";
|
||||
public const STONE_BRICK_TYPE_SMOOTH = "smooth";
|
||||
|
||||
public const STONE_SLAB_TYPE_BRICK = "brick";
|
||||
public const STONE_SLAB_TYPE_COBBLESTONE = "cobblestone";
|
||||
public const STONE_SLAB_TYPE_NETHER_BRICK = "nether_brick";
|
||||
public const STONE_SLAB_TYPE_QUARTZ = "quartz";
|
||||
public const STONE_SLAB_TYPE_SANDSTONE = "sandstone";
|
||||
public const STONE_SLAB_TYPE_SMOOTH_STONE = "smooth_stone";
|
||||
public const STONE_SLAB_TYPE_STONE_BRICK = "stone_brick";
|
||||
public const STONE_SLAB_TYPE_WOOD = "wood";
|
||||
|
||||
public const STONE_SLAB_TYPE_2_MOSSY_COBBLESTONE = "mossy_cobblestone";
|
||||
public const STONE_SLAB_TYPE_2_PRISMARINE_BRICK = "prismarine_brick";
|
||||
public const STONE_SLAB_TYPE_2_PRISMARINE_DARK = "prismarine_dark";
|
||||
public const STONE_SLAB_TYPE_2_PRISMARINE_ROUGH = "prismarine_rough";
|
||||
public const STONE_SLAB_TYPE_2_PURPUR = "purpur";
|
||||
public const STONE_SLAB_TYPE_2_RED_NETHER_BRICK = "red_nether_brick";
|
||||
public const STONE_SLAB_TYPE_2_RED_SANDSTONE = "red_sandstone";
|
||||
public const STONE_SLAB_TYPE_2_SMOOTH_SANDSTONE = "smooth_sandstone";
|
||||
|
||||
public const STONE_SLAB_TYPE_3_ANDESITE = "andesite";
|
||||
public const STONE_SLAB_TYPE_3_DIORITE = "diorite";
|
||||
public const STONE_SLAB_TYPE_3_END_STONE_BRICK = "end_stone_brick";
|
||||
public const STONE_SLAB_TYPE_3_GRANITE = "granite";
|
||||
public const STONE_SLAB_TYPE_3_POLISHED_ANDESITE = "polished_andesite";
|
||||
public const STONE_SLAB_TYPE_3_POLISHED_DIORITE = "polished_diorite";
|
||||
public const STONE_SLAB_TYPE_3_POLISHED_GRANITE = "polished_granite";
|
||||
public const STONE_SLAB_TYPE_3_SMOOTH_RED_SANDSTONE = "smooth_red_sandstone";
|
||||
|
||||
public const STONE_SLAB_TYPE_4_CUT_RED_SANDSTONE = "cut_red_sandstone";
|
||||
public const STONE_SLAB_TYPE_4_CUT_SANDSTONE = "cut_sandstone";
|
||||
public const STONE_SLAB_TYPE_4_MOSSY_STONE_BRICK = "mossy_stone_brick";
|
||||
public const STONE_SLAB_TYPE_4_SMOOTH_QUARTZ = "smooth_quartz";
|
||||
public const STONE_SLAB_TYPE_4_STONE = "stone";
|
||||
|
||||
public const STONE_TYPE_ANDESITE = "andesite";
|
||||
public const STONE_TYPE_ANDESITE_SMOOTH = "andesite_smooth";
|
||||
public const STONE_TYPE_DIORITE = "diorite";
|
||||
public const STONE_TYPE_DIORITE_SMOOTH = "diorite_smooth";
|
||||
public const STONE_TYPE_GRANITE = "granite";
|
||||
public const STONE_TYPE_GRANITE_SMOOTH = "granite_smooth";
|
||||
public const STONE_TYPE_STONE = "stone";
|
||||
|
||||
public const STRIPPED_BIT_0 = 0;
|
||||
public const STRIPPED_BIT_1 = 1;
|
||||
|
||||
public const STRUCTURE_BLOCK_TYPE_CORNER = "corner";
|
||||
public const STRUCTURE_BLOCK_TYPE_DATA = "data";
|
||||
public const STRUCTURE_BLOCK_TYPE_EXPORT = "export";
|
||||
public const STRUCTURE_BLOCK_TYPE_INVALID = "invalid";
|
||||
public const STRUCTURE_BLOCK_TYPE_LOAD = "load";
|
||||
public const STRUCTURE_BLOCK_TYPE_SAVE = "save";
|
||||
|
||||
public const STRUCTURE_VOID_TYPE_AIR = "air";
|
||||
public const STRUCTURE_VOID_TYPE_VOID = "void";
|
||||
|
||||
public const SUSPENDED_BIT_0 = 0;
|
||||
public const SUSPENDED_BIT_1 = 1;
|
||||
|
||||
public const TALL_GRASS_TYPE_DEFAULT = "default";
|
||||
public const TALL_GRASS_TYPE_FERN = "fern";
|
||||
public const TALL_GRASS_TYPE_SNOW = "snow";
|
||||
public const TALL_GRASS_TYPE_TALL = "tall";
|
||||
|
||||
public const TOGGLE_BIT_0 = 0;
|
||||
public const TOGGLE_BIT_1 = 1;
|
||||
|
||||
public const TOP_SLOT_BIT_0 = 0;
|
||||
public const TOP_SLOT_BIT_1 = 1;
|
||||
|
||||
public const TORCH_FACING_DIRECTION_EAST = "east";
|
||||
public const TORCH_FACING_DIRECTION_NORTH = "north";
|
||||
public const TORCH_FACING_DIRECTION_SOUTH = "south";
|
||||
public const TORCH_FACING_DIRECTION_TOP = "top";
|
||||
public const TORCH_FACING_DIRECTION_UNKNOWN = "unknown";
|
||||
public const TORCH_FACING_DIRECTION_WEST = "west";
|
||||
|
||||
public const TRIGGERED_BIT_0 = 0;
|
||||
public const TRIGGERED_BIT_1 = 1;
|
||||
|
||||
public const TURTLE_EGG_COUNT_FOUR_EGG = "four_egg";
|
||||
public const TURTLE_EGG_COUNT_ONE_EGG = "one_egg";
|
||||
public const TURTLE_EGG_COUNT_THREE_EGG = "three_egg";
|
||||
public const TURTLE_EGG_COUNT_TWO_EGG = "two_egg";
|
||||
|
||||
public const TWISTING_VINES_AGE_0 = 0;
|
||||
public const TWISTING_VINES_AGE_1 = 1;
|
||||
public const TWISTING_VINES_AGE_2 = 2;
|
||||
public const TWISTING_VINES_AGE_3 = 3;
|
||||
public const TWISTING_VINES_AGE_4 = 4;
|
||||
public const TWISTING_VINES_AGE_5 = 5;
|
||||
public const TWISTING_VINES_AGE_6 = 6;
|
||||
public const TWISTING_VINES_AGE_7 = 7;
|
||||
public const TWISTING_VINES_AGE_8 = 8;
|
||||
public const TWISTING_VINES_AGE_9 = 9;
|
||||
public const TWISTING_VINES_AGE_10 = 10;
|
||||
public const TWISTING_VINES_AGE_11 = 11;
|
||||
public const TWISTING_VINES_AGE_12 = 12;
|
||||
public const TWISTING_VINES_AGE_13 = 13;
|
||||
public const TWISTING_VINES_AGE_14 = 14;
|
||||
public const TWISTING_VINES_AGE_15 = 15;
|
||||
public const TWISTING_VINES_AGE_16 = 16;
|
||||
public const TWISTING_VINES_AGE_17 = 17;
|
||||
public const TWISTING_VINES_AGE_18 = 18;
|
||||
public const TWISTING_VINES_AGE_19 = 19;
|
||||
public const TWISTING_VINES_AGE_20 = 20;
|
||||
public const TWISTING_VINES_AGE_21 = 21;
|
||||
public const TWISTING_VINES_AGE_22 = 22;
|
||||
public const TWISTING_VINES_AGE_23 = 23;
|
||||
public const TWISTING_VINES_AGE_24 = 24;
|
||||
public const TWISTING_VINES_AGE_25 = 25;
|
||||
|
||||
public const UPDATE_BIT_0 = 0;
|
||||
public const UPDATE_BIT_1 = 1;
|
||||
|
||||
public const UPPER_BLOCK_BIT_0 = 0;
|
||||
public const UPPER_BLOCK_BIT_1 = 1;
|
||||
|
||||
public const UPSIDE_DOWN_BIT_0 = 0;
|
||||
public const UPSIDE_DOWN_BIT_1 = 1;
|
||||
|
||||
public const VINE_DIRECTION_BITS_0 = 0;
|
||||
public const VINE_DIRECTION_BITS_1 = 1;
|
||||
public const VINE_DIRECTION_BITS_2 = 2;
|
||||
public const VINE_DIRECTION_BITS_3 = 3;
|
||||
public const VINE_DIRECTION_BITS_4 = 4;
|
||||
public const VINE_DIRECTION_BITS_5 = 5;
|
||||
public const VINE_DIRECTION_BITS_6 = 6;
|
||||
public const VINE_DIRECTION_BITS_7 = 7;
|
||||
public const VINE_DIRECTION_BITS_8 = 8;
|
||||
public const VINE_DIRECTION_BITS_9 = 9;
|
||||
public const VINE_DIRECTION_BITS_10 = 10;
|
||||
public const VINE_DIRECTION_BITS_11 = 11;
|
||||
public const VINE_DIRECTION_BITS_12 = 12;
|
||||
public const VINE_DIRECTION_BITS_13 = 13;
|
||||
public const VINE_DIRECTION_BITS_14 = 14;
|
||||
public const VINE_DIRECTION_BITS_15 = 15;
|
||||
|
||||
public const WALL_BLOCK_TYPE_ANDESITE = "andesite";
|
||||
public const WALL_BLOCK_TYPE_BRICK = "brick";
|
||||
public const WALL_BLOCK_TYPE_COBBLESTONE = "cobblestone";
|
||||
public const WALL_BLOCK_TYPE_DIORITE = "diorite";
|
||||
public const WALL_BLOCK_TYPE_END_BRICK = "end_brick";
|
||||
public const WALL_BLOCK_TYPE_GRANITE = "granite";
|
||||
public const WALL_BLOCK_TYPE_MOSSY_COBBLESTONE = "mossy_cobblestone";
|
||||
public const WALL_BLOCK_TYPE_MOSSY_STONE_BRICK = "mossy_stone_brick";
|
||||
public const WALL_BLOCK_TYPE_NETHER_BRICK = "nether_brick";
|
||||
public const WALL_BLOCK_TYPE_PRISMARINE = "prismarine";
|
||||
public const WALL_BLOCK_TYPE_RED_NETHER_BRICK = "red_nether_brick";
|
||||
public const WALL_BLOCK_TYPE_RED_SANDSTONE = "red_sandstone";
|
||||
public const WALL_BLOCK_TYPE_SANDSTONE = "sandstone";
|
||||
public const WALL_BLOCK_TYPE_STONE_BRICK = "stone_brick";
|
||||
|
||||
public const WALL_CONNECTION_TYPE_EAST_NONE = "none";
|
||||
public const WALL_CONNECTION_TYPE_EAST_SHORT = "short";
|
||||
public const WALL_CONNECTION_TYPE_EAST_TALL = "tall";
|
||||
|
||||
public const WALL_CONNECTION_TYPE_NORTH_NONE = "none";
|
||||
public const WALL_CONNECTION_TYPE_NORTH_SHORT = "short";
|
||||
public const WALL_CONNECTION_TYPE_NORTH_TALL = "tall";
|
||||
|
||||
public const WALL_CONNECTION_TYPE_SOUTH_NONE = "none";
|
||||
public const WALL_CONNECTION_TYPE_SOUTH_SHORT = "short";
|
||||
public const WALL_CONNECTION_TYPE_SOUTH_TALL = "tall";
|
||||
|
||||
public const WALL_CONNECTION_TYPE_WEST_NONE = "none";
|
||||
public const WALL_CONNECTION_TYPE_WEST_SHORT = "short";
|
||||
public const WALL_CONNECTION_TYPE_WEST_TALL = "tall";
|
||||
|
||||
public const WALL_POST_BIT_0 = 0;
|
||||
public const WALL_POST_BIT_1 = 1;
|
||||
|
||||
public const WEEPING_VINES_AGE_0 = 0;
|
||||
public const WEEPING_VINES_AGE_1 = 1;
|
||||
public const WEEPING_VINES_AGE_2 = 2;
|
||||
public const WEEPING_VINES_AGE_3 = 3;
|
||||
public const WEEPING_VINES_AGE_4 = 4;
|
||||
public const WEEPING_VINES_AGE_5 = 5;
|
||||
public const WEEPING_VINES_AGE_6 = 6;
|
||||
public const WEEPING_VINES_AGE_7 = 7;
|
||||
public const WEEPING_VINES_AGE_8 = 8;
|
||||
public const WEEPING_VINES_AGE_9 = 9;
|
||||
public const WEEPING_VINES_AGE_10 = 10;
|
||||
public const WEEPING_VINES_AGE_11 = 11;
|
||||
public const WEEPING_VINES_AGE_12 = 12;
|
||||
public const WEEPING_VINES_AGE_13 = 13;
|
||||
public const WEEPING_VINES_AGE_14 = 14;
|
||||
public const WEEPING_VINES_AGE_15 = 15;
|
||||
public const WEEPING_VINES_AGE_16 = 16;
|
||||
public const WEEPING_VINES_AGE_17 = 17;
|
||||
public const WEEPING_VINES_AGE_18 = 18;
|
||||
public const WEEPING_VINES_AGE_19 = 19;
|
||||
public const WEEPING_VINES_AGE_20 = 20;
|
||||
public const WEEPING_VINES_AGE_21 = 21;
|
||||
public const WEEPING_VINES_AGE_22 = 22;
|
||||
public const WEEPING_VINES_AGE_23 = 23;
|
||||
public const WEEPING_VINES_AGE_24 = 24;
|
||||
public const WEEPING_VINES_AGE_25 = 25;
|
||||
|
||||
public const WEIRDO_DIRECTION_0 = 0;
|
||||
public const WEIRDO_DIRECTION_1 = 1;
|
||||
public const WEIRDO_DIRECTION_2 = 2;
|
||||
public const WEIRDO_DIRECTION_3 = 3;
|
||||
|
||||
public const WOOD_TYPE_ACACIA = "acacia";
|
||||
public const WOOD_TYPE_BIRCH = "birch";
|
||||
public const WOOD_TYPE_DARK_OAK = "dark_oak";
|
||||
public const WOOD_TYPE_JUNGLE = "jungle";
|
||||
public const WOOD_TYPE_OAK = "oak";
|
||||
public const WOOD_TYPE_SPRUCE = "spruce";
|
||||
|
||||
}
|
@ -27,7 +27,7 @@ use pocketmine\block\utils\BellAttachmentType;
|
||||
use pocketmine\block\utils\CoralType;
|
||||
use pocketmine\block\utils\DyeColor;
|
||||
use pocketmine\block\utils\SlabType;
|
||||
use pocketmine\data\bedrock\blockstate\BlockStateValues as Values;
|
||||
use pocketmine\data\bedrock\blockstate\BlockStateStringValues as StringValues;
|
||||
use pocketmine\math\Axis;
|
||||
use pocketmine\math\Facing;
|
||||
use pocketmine\nbt\tag\CompoundTag;
|
||||
@ -110,22 +110,22 @@ final class BlockStateWriter{
|
||||
/** @return $this */
|
||||
public function writeColor(DyeColor $color) : self{
|
||||
$this->writeString(BlockStateNames::COLOR, match($color->id()){
|
||||
DyeColor::BLACK()->id() => Values::COLOR_BLACK,
|
||||
DyeColor::BLUE()->id() => Values::COLOR_BLUE,
|
||||
DyeColor::BROWN()->id() => Values::COLOR_BROWN,
|
||||
DyeColor::CYAN()->id() => Values::COLOR_CYAN,
|
||||
DyeColor::GRAY()->id() => Values::COLOR_GRAY,
|
||||
DyeColor::GREEN()->id() => Values::COLOR_GREEN,
|
||||
DyeColor::LIGHT_BLUE()->id() => Values::COLOR_LIGHT_BLUE,
|
||||
DyeColor::LIGHT_GRAY()->id() => Values::COLOR_SILVER,
|
||||
DyeColor::LIME()->id() => Values::COLOR_LIME,
|
||||
DyeColor::MAGENTA()->id() => Values::COLOR_MAGENTA,
|
||||
DyeColor::ORANGE()->id() => Values::COLOR_ORANGE,
|
||||
DyeColor::PINK()->id() => Values::COLOR_PINK,
|
||||
DyeColor::PURPLE()->id() => Values::COLOR_PURPLE,
|
||||
DyeColor::RED()->id() => Values::COLOR_RED,
|
||||
DyeColor::WHITE()->id() => Values::COLOR_WHITE,
|
||||
DyeColor::YELLOW()->id() => Values::COLOR_YELLOW,
|
||||
DyeColor::BLACK()->id() => StringValues::COLOR_BLACK,
|
||||
DyeColor::BLUE()->id() => StringValues::COLOR_BLUE,
|
||||
DyeColor::BROWN()->id() => StringValues::COLOR_BROWN,
|
||||
DyeColor::CYAN()->id() => StringValues::COLOR_CYAN,
|
||||
DyeColor::GRAY()->id() => StringValues::COLOR_GRAY,
|
||||
DyeColor::GREEN()->id() => StringValues::COLOR_GREEN,
|
||||
DyeColor::LIGHT_BLUE()->id() => StringValues::COLOR_LIGHT_BLUE,
|
||||
DyeColor::LIGHT_GRAY()->id() => StringValues::COLOR_SILVER,
|
||||
DyeColor::LIME()->id() => StringValues::COLOR_LIME,
|
||||
DyeColor::MAGENTA()->id() => StringValues::COLOR_MAGENTA,
|
||||
DyeColor::ORANGE()->id() => StringValues::COLOR_ORANGE,
|
||||
DyeColor::PINK()->id() => StringValues::COLOR_PINK,
|
||||
DyeColor::PURPLE()->id() => StringValues::COLOR_PURPLE,
|
||||
DyeColor::RED()->id() => StringValues::COLOR_RED,
|
||||
DyeColor::WHITE()->id() => StringValues::COLOR_WHITE,
|
||||
DyeColor::YELLOW()->id() => StringValues::COLOR_YELLOW,
|
||||
default => throw new BlockStateSerializeException("Invalid Color " . $color->name())
|
||||
});
|
||||
return $this;
|
||||
@ -164,9 +164,9 @@ final class BlockStateWriter{
|
||||
/** @return $this */
|
||||
public function writePillarAxis(int $axis) : self{
|
||||
$this->writeString(BlockStateNames::PILLAR_AXIS, match($axis){
|
||||
Axis::X => Values::PILLAR_AXIS_X,
|
||||
Axis::Y => Values::PILLAR_AXIS_Y,
|
||||
Axis::Z => Values::PILLAR_AXIS_Z,
|
||||
Axis::X => StringValues::PILLAR_AXIS_X,
|
||||
Axis::Y => StringValues::PILLAR_AXIS_Y,
|
||||
Axis::Z => StringValues::PILLAR_AXIS_Z,
|
||||
default => throw new BlockStateSerializeException("Invalid axis $axis")
|
||||
});
|
||||
return $this;
|
||||
@ -185,11 +185,11 @@ final class BlockStateWriter{
|
||||
/** @return $this */
|
||||
public function writeTorchFacing(int $facing) : self{
|
||||
$this->writeString(BlockStateNames::TORCH_FACING_DIRECTION, match($facing){
|
||||
Facing::UP => Values::TORCH_FACING_DIRECTION_TOP,
|
||||
Facing::NORTH => Values::TORCH_FACING_DIRECTION_NORTH,
|
||||
Facing::SOUTH => Values::TORCH_FACING_DIRECTION_SOUTH,
|
||||
Facing::WEST => Values::TORCH_FACING_DIRECTION_WEST,
|
||||
Facing::EAST => Values::TORCH_FACING_DIRECTION_EAST,
|
||||
Facing::UP => StringValues::TORCH_FACING_DIRECTION_TOP,
|
||||
Facing::NORTH => StringValues::TORCH_FACING_DIRECTION_NORTH,
|
||||
Facing::SOUTH => StringValues::TORCH_FACING_DIRECTION_SOUTH,
|
||||
Facing::WEST => StringValues::TORCH_FACING_DIRECTION_WEST,
|
||||
Facing::EAST => StringValues::TORCH_FACING_DIRECTION_EAST,
|
||||
default => throw new BlockStateSerializeException("Invalid Torch facing $facing")
|
||||
});
|
||||
return $this;
|
||||
@ -198,11 +198,11 @@ final class BlockStateWriter{
|
||||
/** @return $this */
|
||||
public function writeCoralType(CoralType $coralType) : self{
|
||||
$this->writeString(BlockStateNames::CORAL_COLOR, match($coralType->id()){
|
||||
CoralType::TUBE()->id() => Values::CORAL_COLOR_BLUE,
|
||||
CoralType::BRAIN()->id() => Values::CORAL_COLOR_PINK,
|
||||
CoralType::BUBBLE()->id() => Values::CORAL_COLOR_PURPLE,
|
||||
CoralType::FIRE()->id() => Values::CORAL_COLOR_RED,
|
||||
CoralType::HORN()->id() => Values::CORAL_COLOR_YELLOW,
|
||||
CoralType::TUBE()->id() => StringValues::CORAL_COLOR_BLUE,
|
||||
CoralType::BRAIN()->id() => StringValues::CORAL_COLOR_PINK,
|
||||
CoralType::BUBBLE()->id() => StringValues::CORAL_COLOR_PURPLE,
|
||||
CoralType::FIRE()->id() => StringValues::CORAL_COLOR_RED,
|
||||
CoralType::HORN()->id() => StringValues::CORAL_COLOR_YELLOW,
|
||||
default => throw new BlockStateSerializeException("Invalid Coral type " . $coralType->name())
|
||||
});
|
||||
return $this;
|
||||
@ -211,10 +211,10 @@ final class BlockStateWriter{
|
||||
/** @return $this */
|
||||
public function writeBellAttachmentType(BellAttachmentType $attachmentType) : self{
|
||||
$this->writeString(BlockStateNames::ATTACHMENT, match($attachmentType->id()){
|
||||
BellAttachmentType::FLOOR()->id() => Values::ATTACHMENT_STANDING,
|
||||
BellAttachmentType::CEILING()->id() => Values::ATTACHMENT_HANGING,
|
||||
BellAttachmentType::ONE_WALL()->id() => Values::ATTACHMENT_SIDE,
|
||||
BellAttachmentType::TWO_WALLS()->id() => Values::ATTACHMENT_MULTIPLE,
|
||||
BellAttachmentType::FLOOR()->id() => StringValues::ATTACHMENT_STANDING,
|
||||
BellAttachmentType::CEILING()->id() => StringValues::ATTACHMENT_HANGING,
|
||||
BellAttachmentType::ONE_WALL()->id() => StringValues::ATTACHMENT_SIDE,
|
||||
BellAttachmentType::TWO_WALLS()->id() => StringValues::ATTACHMENT_MULTIPLE,
|
||||
default => throw new BlockStateSerializeException("Invalid Bell attachment type " . $attachmentType->name())
|
||||
});
|
||||
return $this;
|
||||
|
Loading…
x
Reference in New Issue
Block a user