mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-04 21:01:02 -05:00
Merge branch 'master' of github.com:Steveice10/MCProtocolLib
This commit is contained in:
commit
6513ff5a91
4 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package com.github.steveice10.mc.protocol.data.game.entity.type;
|
||||
|
||||
public enum MobType {
|
||||
ARMOR_STAND,
|
||||
BAT,
|
||||
BLAZE,
|
||||
CAVE_SPIDER,
|
||||
|
|
|
@ -88,6 +88,7 @@ public class ServerPlayerListEntryPacket extends MinecraftPacket {
|
|||
}
|
||||
|
||||
entry = new PlayerListEntry(profile, disp);
|
||||
break;
|
||||
case REMOVE_PLAYER:
|
||||
entry = new PlayerListEntry(profile);
|
||||
break;
|
||||
|
|
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue