mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-01 15:49:54 +00:00
Updated for 1.18.10
This commit is contained in:
parent
1905f87942
commit
166ffe430a
@ -94,7 +94,6 @@ final class BlockStateNames{
|
||||
public const MULTI_FACE_DIRECTION_BITS = "multi_face_direction_bits";
|
||||
public const NEW_LEAF_TYPE = "new_leaf_type";
|
||||
public const NEW_LOG_TYPE = "new_log_type";
|
||||
public const NO_DROP_BIT = "no_drop_bit";
|
||||
public const OCCUPIED_BIT = "occupied_bit";
|
||||
public const OLD_LEAF_TYPE = "old_leaf_type";
|
||||
public const OLD_LOG_TYPE = "old_log_type";
|
||||
|
@ -374,6 +374,7 @@ final class BlockTypeNames{
|
||||
public const FLOWING_LAVA = "minecraft:flowing_lava";
|
||||
public const FLOWING_WATER = "minecraft:flowing_water";
|
||||
public const FRAME = "minecraft:frame";
|
||||
public const FROG_EGG = "minecraft:frog_egg";
|
||||
public const FROSTED_ICE = "minecraft:frosted_ice";
|
||||
public const FURNACE = "minecraft:furnace";
|
||||
public const GILDED_BLACKSTONE = "minecraft:gilded_blackstone";
|
||||
@ -495,6 +496,7 @@ final class BlockTypeNames{
|
||||
public const OAK_STAIRS = "minecraft:oak_stairs";
|
||||
public const OBSERVER = "minecraft:observer";
|
||||
public const OBSIDIAN = "minecraft:obsidian";
|
||||
public const OCHRE_FROGLIGHT = "minecraft:ochre_froglight";
|
||||
public const ORANGE_CANDLE = "minecraft:orange_candle";
|
||||
public const ORANGE_CANDLE_CAKE = "minecraft:orange_candle_cake";
|
||||
public const ORANGE_GLAZED_TERRACOTTA = "minecraft:orange_glazed_terracotta";
|
||||
@ -504,6 +506,7 @@ final class BlockTypeNames{
|
||||
public const OXIDIZED_CUT_COPPER_STAIRS = "minecraft:oxidized_cut_copper_stairs";
|
||||
public const OXIDIZED_DOUBLE_CUT_COPPER_SLAB = "minecraft:oxidized_double_cut_copper_slab";
|
||||
public const PACKED_ICE = "minecraft:packed_ice";
|
||||
public const PEARLESCENT_FROGLIGHT = "minecraft:pearlescent_froglight";
|
||||
public const PINK_CANDLE = "minecraft:pink_candle";
|
||||
public const PINK_CANDLE_CAKE = "minecraft:pink_candle_cake";
|
||||
public const PINK_GLAZED_TERRACOTTA = "minecraft:pink_glazed_terracotta";
|
||||
@ -670,6 +673,7 @@ final class BlockTypeNames{
|
||||
public const UNLIT_REDSTONE_TORCH = "minecraft:unlit_redstone_torch";
|
||||
public const UNPOWERED_COMPARATOR = "minecraft:unpowered_comparator";
|
||||
public const UNPOWERED_REPEATER = "minecraft:unpowered_repeater";
|
||||
public const VERDANT_FROGLIGHT = "minecraft:verdant_froglight";
|
||||
public const VINE = "minecraft:vine";
|
||||
public const WALL_BANNER = "minecraft:wall_banner";
|
||||
public const WALL_SIGN = "minecraft:wall_sign";
|
||||
|
@ -766,7 +766,6 @@ final class BlockObjectToBlockStateSerializer implements BlockStateSerializer{
|
||||
$this->map(Blocks::MELON_STEM(), fn(MelonStem $block) => Helper::encodeStem($block, new Writer(Ids::MELON_STEM)));
|
||||
$this->map(Blocks::MOB_HEAD(), function(Skull $block) : Writer{
|
||||
return Writer::create(Ids::SKULL)
|
||||
->writeBool(StateNames::NO_DROP_BIT, $block->isNoDrops())
|
||||
->writeFacingWithoutDown($block->getFacing());
|
||||
});
|
||||
$this->map(Blocks::MONSTER_SPAWNER(), fn() => new Writer(Ids::MOB_SPAWNER));
|
||||
|
@ -851,8 +851,7 @@ final class BlockStateToBlockObjectDeserializer implements BlockStateDeserialize
|
||||
$this->map(Ids::SILVER_GLAZED_TERRACOTTA, fn(Reader $in) => Helper::decodeGlazedTerracotta(Blocks::LIGHT_GRAY_GLAZED_TERRACOTTA(), $in));
|
||||
$this->map(Ids::SKULL, function(Reader $in) : Block{
|
||||
return Blocks::MOB_HEAD()
|
||||
->setFacing($in->readFacingWithoutDown())
|
||||
->setNoDrops($in->readBool(StateNames::NO_DROP_BIT));
|
||||
->setFacing($in->readFacingWithoutDown());
|
||||
});
|
||||
$this->map(Ids::SLIME, fn() => Blocks::SLIME());
|
||||
$this->map(Ids::SMOKER, function(Reader $in) : Block{
|
||||
|
Loading…
x
Reference in New Issue
Block a user