Skip to content

Commit 4f72007

Browse files
committed
Update some missed values
1 parent 961f228 commit 4f72007

5 files changed

Lines changed: 41 additions & 6 deletions

File tree

protocol/src/main/java/org/geysermc/mcprotocollib/protocol/data/game/item/component/DataComponentTypes.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public class DataComponentTypes {
105105
public static final DataComponentType<List<Optional<ItemStack>>> CONTAINER = register(id -> new DataComponentType<>(id, "container", listReader(optionalReader(MinecraftTypes::readItemStackTemplate), 256), listWriter(optionalWriter(MinecraftTypes::writeItemStackTemplate), 256), ObjectDataComponent::new));
106106
public static final DataComponentType<BlockStateProperties> BLOCK_STATE = register(id -> new DataComponentType<>(id, "block_state", ItemTypes::readBlockStateProperties, ItemTypes::writeBlockStateProperties, ObjectDataComponent::new));
107107
public static final DataComponentType<List<BeehiveOccupant>> BEES = register(id -> new DataComponentType<>(id, "bees", listReader(ItemTypes::readBeehiveOccupant), listWriter(ItemTypes::writeBeehiveOccupant), ObjectDataComponent::new));
108+
public static final DataComponentType<ItemStack> SULFUR_CUBE_CONTENT = register(id -> new DataComponentType<>(id, "sulfur_cube_content", MinecraftTypes::readItemStackTemplate, MinecraftTypes::writeItemStackTemplate, ObjectDataComponent::new));
108109
public static final DataComponentType<NbtMap> LOCK = register(id -> new DataComponentType<>(id, "lock", MinecraftTypes::readCompoundTag, MinecraftTypes::writeAnyTag, ObjectDataComponent::new));
109110
public static final DataComponentType<NbtMap> CONTAINER_LOOT = register(id -> new DataComponentType<>(id, "container_loot", MinecraftTypes::readCompoundTag, MinecraftTypes::writeAnyTag, ObjectDataComponent::new));
110111
public static final DataComponentType<Sound> BREAK_SOUND = register(id -> new DataComponentType<>(id, "break_sound", MinecraftTypes::readSound, MinecraftTypes::writeSound, ObjectDataComponent::new));

protocol/src/main/java/org/geysermc/mcprotocollib/protocol/data/game/level/block/BlockEntityType.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ public enum BlockEntityType {
5151
VAULT,
5252
TEST_BLOCK,
5353
TEST_INSTANCE_BLOCK,
54-
COPPER_GOLEM_STATUE;
54+
COPPER_GOLEM_STATUE,
55+
POTENT_SULFUR;
5556

5657
private static final BlockEntityType[] VALUES = values();
5758

protocol/src/main/java/org/geysermc/mcprotocollib/protocol/data/game/level/particle/ParticleType.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ public enum ParticleType {
55
BLOCK,
66
BLOCK_MARKER,
77
BUBBLE,
8+
SULFUR_BUBBLES,
9+
NOXIOUS_GAS,
10+
NOXIOUS_GAS_CLOUD,
811
CLOUD,
912
COPPER_FIRE_FLAME,
1013
CRIT,
@@ -117,7 +120,8 @@ public enum ParticleType {
117120
RAID_OMEN,
118121
TRIAL_OMEN,
119122
BLOCK_CRUMBLE,
120-
FIREFLY;
123+
FIREFLY,
124+
SULFUR_CUBE_GOO;
121125

122126
private static final ParticleType[] VALUES = values();
123127

protocol/src/main/java/org/geysermc/mcprotocollib/protocol/data/game/level/sound/BuiltinSound.java

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1908,7 +1908,36 @@ public enum BuiltinSound implements Sound {
19081908
EVENT_MOB_EFFECT_RAID_OMEN("event.mob_effect.raid_omen"),
19091909
ITEM_SADDLE_UNEQUIP("item.saddle.unequip"),
19101910
ITEM_NAUTILUS_SADDLE_UNDERWATER_EQUIP("item.nautilus_saddle_underwater_equip"),
1911-
ITEM_NAUTILUS_SADDLE_EQUIP("item.nautilus_saddle_equip");
1911+
ITEM_NAUTILUS_SADDLE_EQUIP("item.nautilus_saddle_equip"),
1912+
BLOCK_SULFUR_BREAK("block.sulfur.break"),
1913+
BLOCK_SULFUR_STEP("block.sulfur.step"),
1914+
BLOCK_SULFUR_PLACE("block.sulfur.place"),
1915+
BLOCK_SULFUR_HIT("block.sulfur.hit"),
1916+
BLOCK_SULFUR_FALL("block.sulfur.fall"),
1917+
BLOCK_POTENT_SULFUR_BREAK("block.potent_sulfur.break"),
1918+
BLOCK_POTENT_SULFUR_STEP("block.potent_sulfur.step"),
1919+
BLOCK_POTENT_SULFUR_PLACE("block.potent_sulfur.place"),
1920+
BLOCK_POTENT_SULFUR_HIT("block.potent_sulfur.hit"),
1921+
BLOCK_POTENT_SULFUR_FALL("block.potent_sulfur.fall"),
1922+
BLOCK_CINNABAR_BREAK("block.cinnabar.break"),
1923+
BLOCK_CINNABAR_STEP("block.cinnabar.step"),
1924+
BLOCK_CINNABAR_PLACE("block.cinnabar.place"),
1925+
BLOCK_CINNABAR_HIT("block.cinnabar.hit"),
1926+
BLOCK_CINNABAR_FALL("block.cinnabar.fall"),
1927+
ENTITY_SULFUR_CUBE_ABSORB("entity.sulfur_cube.absorb"),
1928+
ENTITY_SULFUR_CUBE_BOUNCE("entity.sulfur_cube.bounce"),
1929+
ENTITY_SULFUR_CUBE_DEATH("entity.sulfur_cube.death"),
1930+
ENTITY_SULFUR_CUBE_EJECT("entity.sulfur_cube.eject"),
1931+
ENTITY_SULFUR_CUBE_HIT("entity.sulfur_cube.hit"),
1932+
ENTITY_SULFUR_CUBE_HURT("entity.sulfur_cube.hurt"),
1933+
ENTITY_SULFUR_CUBE_JUMP("entity.sulfur_cube.jump"),
1934+
ENTITY_SULFUR_CUBE_PUSH("entity.sulfur_cube.push"),
1935+
ENTITY_SULFUR_CUBE_SQUISH("entity.sulfur_cube.squish"),
1936+
BLOCK_POTENT_SULFUR_NOXIOUS_GAS("block.potent_sulfur.noxious_gas"),
1937+
ENTITY_SMALL_SULFUR_CUBE_DEATH("entity.small_sulfur_cube.death"),
1938+
ENTITY_SMALL_SULFUR_CUBE_HURT("entity.small_sulfur_cube.hurt"),
1939+
ENTITY_SMALL_SULFUR_CUBE_JUMP("entity.small_sulfur_cube.jump"),
1940+
ENTITY_SMALL_SULFUR_CUBE_SQUISH("entity.small_sulfur_cube.squish");
19121941

19131942
private final @NonNull String name;
19141943

protocol/src/main/java/org/geysermc/mcprotocollib/protocol/packet/ingame/clientbound/level/ClientboundBlockEventPacket.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ public class ClientboundBlockEventPacket implements MinecraftPacket {
4848
private static final int SHULKER_BOX_LOWER = 677;
4949
private static final int SHULKER_BOX_HIGHER = 693;
5050
private static final int BELL = 848;
51-
private static final int COPPER_CHEST_LOWER = 1081;
52-
private static final int COPPER_CHEST_HIGHER = 1088;
53-
private static final int DECORATED_POT = 1155;
51+
private static final int COPPER_CHEST_LOWER = 1108;
52+
private static final int COPPER_CHEST_HIGHER = 1115;
53+
private static final int DECORATED_POT = 1182;
5454
private static final Logger log = LoggerFactory.getLogger(ClientboundBlockEventPacket.class);
5555

5656
private final @NonNull Vector3i position;

0 commit comments

Comments
 (0)