24w39a
Some checks failed
Java CI with Gradle / build (push) Has been cancelled

This commit is contained in:
basaigh 2024-10-03 17:23:35 +01:00
parent 2b3d8cbec1
commit 1702924c95
3 changed files with 35 additions and 16 deletions

View file

@ -210,9 +210,9 @@ import org.geysermc.mcprotocollib.protocol.packet.status.serverbound.Serverbound
public class MinecraftCodec { public class MinecraftCodec {
public static final PacketCodec CODEC = PacketCodec.builder() public static final PacketCodec CODEC = PacketCodec.builder()
.protocolVersion((1 << 30) | 210) .protocolVersion((1 << 30) | 211)
.helper(MinecraftCodecHelper::new) .helper(MinecraftCodecHelper::new)
.minecraftVersion("24w38a") .minecraftVersion("24w39a")
.state(ProtocolState.HANDSHAKE, MinecraftPacketRegistry.builder() .state(ProtocolState.HANDSHAKE, MinecraftPacketRegistry.builder()
.registerServerboundPacket(ClientIntentionPacket.class, ClientIntentionPacket::new) .registerServerboundPacket(ClientIntentionPacket.class, ClientIntentionPacket::new)
) )

View file

@ -3,47 +3,56 @@ package org.geysermc.mcprotocollib.protocol.data.game.entity.type;
import lombok.Getter; import lombok.Getter;
public enum EntityType { public enum EntityType {
ACACIA_BOAT,
ACACIA_CHEST_BOAT,
ALLAY, ALLAY,
AREA_EFFECT_CLOUD, AREA_EFFECT_CLOUD,
ARMADILLO, ARMADILLO,
ARMOR_STAND, ARMOR_STAND,
ARROW(true), ARROW(true),
AXOLOTL, AXOLOTL,
BAMBOO_CHEST_RAFT,
BAMBOO_RAFT,
BAT, BAT,
BEE, BEE,
BIRCH_BOAT,
BIRCH_CHEST_BOAT,
BLAZE, BLAZE,
BLOCK_DISPLAY, BLOCK_DISPLAY,
BOAT,
BOGGED, BOGGED,
BREEZE, BREEZE,
BREEZE_WIND_CHARGE(true), BREEZE_WIND_CHARGE(true),
CAMEL, CAMEL,
CAT, CAT,
CAVE_SPIDER, CAVE_SPIDER,
CHEST_BOAT, CHERRY_BOAT,
CHERRY_CHEST_BOAT,
CHEST_MINECART, CHEST_MINECART,
CHICKEN, CHICKEN,
COD, COD,
COMMAND_BLOCK_MINECART, COMMAND_BLOCK_MINECART,
COW, COW,
CREEPER, CREEPER,
DARK_OAK_BOAT,
DARK_OAK_CHEST_BOAT,
DOLPHIN, DOLPHIN,
DONKEY, DONKEY,
DRAGON_FIREBALL(true), DRAGON_FIREBALL(true),
DROWNED, DROWNED,
EGG(true), EGG(true),
ELDER_GUARDIAN, ELDER_GUARDIAN,
END_CRYSTAL,
ENDER_DRAGON,
ENDER_PEARL(true),
ENDERMAN, ENDERMAN,
ENDERMITE, ENDERMITE,
ENDER_DRAGON,
ENDER_PEARL(true),
END_CRYSTAL,
EVOKER, EVOKER,
EVOKER_FANGS, EVOKER_FANGS,
EXPERIENCE_BOTTLE(true), EXPERIENCE_BOTTLE(true),
EXPERIENCE_ORB, EXPERIENCE_ORB,
EYE_OF_ENDER, EYE_OF_ENDER,
FALLING_BLOCK, FALLING_BLOCK,
FIREBALL(true),
FIREWORK_ROCKET(true), FIREWORK_ROCKET(true),
FOX, FOX,
FROG, FROG,
@ -64,18 +73,23 @@ public enum EntityType {
ITEM, ITEM,
ITEM_DISPLAY, ITEM_DISPLAY,
ITEM_FRAME, ITEM_FRAME,
OMINOUS_ITEM_SPAWNER, JUNGLE_BOAT,
FIREBALL(true), JUNGLE_CHEST_BOAT,
LEASH_KNOT, LEASH_KNOT,
LIGHTNING_BOLT, LIGHTNING_BOLT,
LLAMA, LLAMA,
LLAMA_SPIT(true), LLAMA_SPIT(true),
MAGMA_CUBE, MAGMA_CUBE,
MANGROVE_BOAT,
MANGROVE_CHEST_BOAT,
MARKER, MARKER,
MINECART, MINECART,
MOOSHROOM, MOOSHROOM,
MULE, MULE,
OAK_BOAT,
OAK_CHEST_BOAT,
OCELOT, OCELOT,
OMINOUS_ITEM_SPAWNER,
PAINTING, PAINTING,
PANDA, PANDA,
PARROT, PARROT,
@ -99,11 +113,13 @@ public enum EntityType {
SLIME, SLIME,
SMALL_FIREBALL(true), SMALL_FIREBALL(true),
SNIFFER, SNIFFER,
SNOW_GOLEM,
SNOWBALL(true), SNOWBALL(true),
SNOW_GOLEM,
SPAWNER_MINECART, SPAWNER_MINECART,
SPECTRAL_ARROW(true), SPECTRAL_ARROW(true),
SPIDER, SPIDER,
SPRUCE_BOAT,
SPRUCE_CHEST_BOAT,
SQUID, SQUID,
STRAY, STRAY,
STRIDER, STRIDER,

View file

@ -11,17 +11,20 @@ import org.geysermc.mcprotocollib.protocol.codec.MinecraftPacket;
@With @With
@AllArgsConstructor @AllArgsConstructor
public class ClientboundSetTimePacket implements MinecraftPacket { public class ClientboundSetTimePacket implements MinecraftPacket {
private final long worldAge; private final long gameTime;
private final long time; private final long dayTime;
private final boolean tickDayTime;
public ClientboundSetTimePacket(ByteBuf in, MinecraftCodecHelper helper) { public ClientboundSetTimePacket(ByteBuf in, MinecraftCodecHelper helper) {
this.worldAge = in.readLong(); this.gameTime = in.readLong();
this.time = in.readLong(); this.dayTime = in.readLong();
this.tickDayTime = in.readBoolean();
} }
@Override @Override
public void serialize(ByteBuf out, MinecraftCodecHelper helper) { public void serialize(ByteBuf out, MinecraftCodecHelper helper) {
out.writeLong(this.worldAge); out.writeLong(this.gameTime);
out.writeLong(this.time); out.writeLong(this.dayTime);
out.writeBoolean(this.tickDayTime);
} }
} }