public class AdvancementTabC2SPacket extends Object implements Packet<ServerPlayPacketListener>
Modifier and Type | Class and Description |
---|---|
static class |
AdvancementTabC2SPacket.Action |
Modifier and Type | Field and Description |
---|---|
private AdvancementTabC2SPacket.Action |
action |
private Identifier |
tabToOpen |
Constructor and Description |
---|
AdvancementTabC2SPacket() |
AdvancementTabC2SPacket(AdvancementTabC2SPacket.Action action,
Identifier tab) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
static AdvancementTabC2SPacket |
close() |
AdvancementTabC2SPacket.Action |
getAction() |
Identifier |
getTabToOpen() |
static AdvancementTabC2SPacket |
open(Advancement advancement) |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private AdvancementTabC2SPacket.Action action
private Identifier tabToOpen
public AdvancementTabC2SPacket()
@Environment(value=CLIENT) public AdvancementTabC2SPacket(AdvancementTabC2SPacket.Action action, @Nullable Identifier tab)
@Environment(value=CLIENT) public static AdvancementTabC2SPacket open(Advancement advancement)
@Environment(value=CLIENT) public static AdvancementTabC2SPacket close()
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ServerPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ServerPlayPacketListener>
IOException
public void apply(ServerPlayPacketListener serverPlayPacketListener)
apply
in interface Packet<ServerPlayPacketListener>
public AdvancementTabC2SPacket.Action getAction()
public Identifier getTabToOpen()