Remove ServerSpawnWeatherEntityPacket

This commit is contained in:
DoctorMacc 2020-06-21 19:21:44 -04:00
parent 83f7b91c9c
commit 0a21fbadb7
2 changed files with 1 additions and 52 deletions

View file

@ -108,7 +108,6 @@ import com.github.steveice10.mc.protocol.packet.ingame.server.entity.spawn.Serve
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.spawn.ServerSpawnLivingEntityPacket;
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.spawn.ServerSpawnPaintingPacket;
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.spawn.ServerSpawnPlayerPacket;
import com.github.steveice10.mc.protocol.packet.ingame.server.entity.spawn.ServerSpawnWeatherEntityPacket;
import com.github.steveice10.mc.protocol.packet.ingame.server.scoreboard.ServerDisplayScoreboardPacket;
import com.github.steveice10.mc.protocol.packet.ingame.server.scoreboard.ServerScoreboardObjectivePacket;
import com.github.steveice10.mc.protocol.packet.ingame.server.scoreboard.ServerTeamPacket;
@ -567,7 +566,7 @@ public class MinecraftProtocol extends PacketProtocol {
this.registerOutgoing(0x00, ServerSpawnEntityPacket.class);
this.registerOutgoing(0x01, ServerSpawnExpOrbPacket.class);
this.registerOutgoing(0x02, ServerSpawnWeatherEntityPacket.class);
this.registerOutgoing(0x02, ServerSpawnLivingEntityPacket.class);
this.registerOutgoing(0x03, ServerSpawnPaintingPacket.class);
this.registerOutgoing(0x04, ServerSpawnPlayerPacket.class);
this.registerOutgoing(0x05, ServerEntityAnimationPacket.class);

View file

@ -1,50 +0,0 @@
package com.github.steveice10.mc.protocol.packet.ingame.server.entity.spawn;
import com.github.steveice10.mc.protocol.data.MagicValues;
import com.github.steveice10.mc.protocol.data.game.entity.type.WeatherEntityType;
import com.github.steveice10.packetlib.io.NetInput;
import com.github.steveice10.packetlib.io.NetOutput;
import com.github.steveice10.packetlib.packet.Packet;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import lombok.Setter;
import java.io.IOException;
@Data
@Setter(AccessLevel.NONE)
@NoArgsConstructor(access = AccessLevel.PRIVATE)
@AllArgsConstructor
public class ServerSpawnWeatherEntityPacket implements Packet {
private int entityId;
private @NonNull WeatherEntityType type;
private double x;
private double y;
private double z;
@Override
public void read(NetInput in) throws IOException {
this.entityId = in.readVarInt();
this.type = MagicValues.key(WeatherEntityType.class, in.readByte());
this.x = in.readDouble();
this.y = in.readDouble();
this.z = in.readDouble();
}
@Override
public void write(NetOutput out) throws IOException {
out.writeVarInt(this.entityId);
out.writeByte(MagicValues.value(Integer.class, this.type));
out.writeDouble(this.x);
out.writeDouble(this.y);
out.writeDouble(this.z);
}
@Override
public boolean isPriority() {
return false;
}
}