Merge branch 'master' of github.com:Steveice10/MCProtocolLib

This commit is contained in:
Steveice10 2019-04-29 17:41:19 -07:00
commit 6513ff5a91
4 changed files with 9 additions and 0 deletions

View file

@ -332,6 +332,7 @@ public class MagicValues {
register(GlobalEntityType.LIGHTNING_BOLT, 1);
register(MobType.ARMOR_STAND, 1);
register(MobType.BAT, 3);
register(MobType.BLAZE, 4);
register(MobType.CAVE_SPIDER, 6);

View file

@ -1,6 +1,7 @@
package com.github.steveice10.mc.protocol.data.game.entity.type;
public enum MobType {
ARMOR_STAND,
BAT,
BLAZE,
CAVE_SPIDER,

View file

@ -88,6 +88,7 @@ public class ServerPlayerListEntryPacket extends MinecraftPacket {
}
entry = new PlayerListEntry(profile, disp);
break;
case REMOVE_PLAYER:
entry = new PlayerListEntry(profile);
break;

View file

@ -52,6 +52,9 @@ public class ServerTabCompletePacket extends MinecraftPacket {
@Override
public void read(NetInput in) throws IOException {
this.transactionId = in.readVarInt();
this.start = in.readVarInt();
this.length = in.readVarInt();
this.matches = new String[in.readVarInt()];
this.tooltips = new TextMessage[this.matches.length];
for(int index = 0; index < this.matches.length; index++) {
@ -64,6 +67,9 @@ public class ServerTabCompletePacket extends MinecraftPacket {
@Override
public void write(NetOutput out) throws IOException {
out.writeVarInt(this.transactionId);
out.writeVarInt(this.start);
out.writeVarInt(this.length);
out.writeVarInt(this.matches.length);
for(int index = 0; index < this.matches.length; index++) {
out.writeString(this.matches[index]);