rename biome packet
This commit is contained in:
parent
ffca1f62e5
commit
1eefb197f0
5 changed files with 11 additions and 11 deletions
|
@ -95,7 +95,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;
|
||||
|
@ -776,7 +776,7 @@ public class ClientPlayer extends NetHandler implements IClientPlayer
|
|||
}
|
||||
}
|
||||
|
||||
public void handleBiomes(SPacketBiomes packetIn)
|
||||
public void handleBiomes(SPacketBiome packetIn)
|
||||
{
|
||||
NetHandler.checkThread(packetIn, this, this.gameController, this.clientWorldController);
|
||||
ChunkClient chunk = this.clientWorldController.getChunk(packetIn.getChunkX(), packetIn.getChunkZ());
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
|
@ -54,7 +54,7 @@ import common.packet.S29PacketSoundEffect;
|
|||
import common.packet.S2APacketParticles;
|
||||
import common.packet.S2BPacketChangeGameState;
|
||||
import common.packet.S2CPacketSpawnGlobalEntity;
|
||||
import common.packet.SPacketBiomes;
|
||||
import common.packet.SPacketBiome;
|
||||
import common.packet.SPacketBlockAction;
|
||||
import common.packet.SPacketBlockBreakAnim;
|
||||
import common.packet.SPacketBlockChange;
|
||||
|
@ -1885,7 +1885,7 @@ public final class WorldServer extends AWorldServer {
|
|||
long v = (long)chunkX + 2147483647L | (long)chunkZ + 2147483647L << 32;
|
||||
PlayerInstance ins = this.instances.getValueByKey(v);
|
||||
if(ins != null)
|
||||
ins.sendToAllPlayersWatchingChunk(new SPacketBiomes(pos, biome));
|
||||
ins.sendToAllPlayersWatchingChunk(new SPacketBiome(pos, biome));
|
||||
}
|
||||
|
||||
private PlayerInstance getPlayerInstance(int chunkX, int chunkZ, boolean create) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue