rename biome packet

This commit is contained in:
Sen 2025-05-24 18:49:50 +02:00
parent ffca1f62e5
commit 1eefb197f0
5 changed files with 11 additions and 11 deletions

View file

@ -34,7 +34,7 @@ import common.packet.S39PacketPlayerAbilities;
import common.packet.S3APacketTabComplete;
import common.packet.S43PacketUpdateEntityNBT;
import common.packet.SPacketAnimation;
import common.packet.SPacketBiomes;
import common.packet.SPacketBiome;
import common.packet.SPacketBlockAction;
import common.packet.SPacketBlockBreakAnim;
import common.packet.SPacketBlockChange;
@ -100,7 +100,7 @@ public interface IClientPlayer {
void handlePlayerPosLook(SPacketPlayerPosLook packetIn);
void handleMultiBlockChange(SPacketMultiBlockChange packetIn);
void handleChunkData(SPacketChunkData packetIn);
void handleBiomes(SPacketBiomes packetIn);
void handleBiomes(SPacketBiome packetIn);
void handleBlockChange(SPacketBlockChange packetIn);
void handleDisconnect(SPacketDisconnect packetIn);
void handleCollectItem(SPacketCollectItem packetIn);

View file

@ -56,7 +56,7 @@ import common.packet.S39PacketPlayerAbilities;
import common.packet.S3APacketTabComplete;
import common.packet.S43PacketUpdateEntityNBT;
import common.packet.SPacketAnimation;
import common.packet.SPacketBiomes;
import common.packet.SPacketBiome;
import common.packet.SPacketBlockAction;
import common.packet.SPacketBlockBreakAnim;
import common.packet.SPacketBlockChange;
@ -177,7 +177,7 @@ public enum PacketRegistry
this.server(SPacketWorld.class);
// this.server(SPacketCapes.class);
this.server(SPacketCamera.class);
this.server(SPacketBiomes.class);
this.server(SPacketBiome.class);
// this.server(S42PacketTitle.class);
this.server(S43PacketUpdateEntityNBT.class);
// this.server(SPacketBook.class);

View file

@ -8,15 +8,15 @@ import common.network.Packet;
import common.network.PacketBuffer;
import common.util.BlockPos;
public class SPacketBiomes implements Packet<IClientPlayer> {
public class SPacketBiome implements Packet<IClientPlayer> {
private int posX;
private int posZ;
private Biome biome;
public SPacketBiomes() {
public SPacketBiome() {
}
public SPacketBiomes(BlockPos pos, Biome biome) {
public SPacketBiome(BlockPos pos, Biome biome) {
this.posX = pos.getX();
this.posZ = pos.getZ();
this.biome = biome;