Class ServerboundSeenAdvancementsPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundSeenAdvancementsPacket
- All Implemented Interfaces:
Packet<ServerGamePacketListener>
public class ServerboundSeenAdvancementsPacket
extends Object
implements Packet<ServerGamePacketListener>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServerboundSeenAdvancementsPacket.Action
static final StreamCodec
<FriendlyByteBuf, ServerboundSeenAdvancementsPacket> private final ResourceLocation
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ServerboundSeenAdvancementsPacket
(FriendlyByteBuf p_179744_) ServerboundSeenAdvancementsPacket
(ServerboundSeenAdvancementsPacket.Action pAction, ResourceLocation pTab) -
Method Summary
Modifier and TypeMethodDescriptiongetTab()
void
handle
(ServerGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.openedTab
(AdvancementHolder pAdvancement) type()
private void
write
(FriendlyByteBuf p_134446_) Writes the raw packet data to the data stream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.Packet
isSkippable, isTerminal
-
Field Details
-
STREAM_CODEC
-
action
-
tab
-
-
Constructor Details
-
ServerboundSeenAdvancementsPacket
public ServerboundSeenAdvancementsPacket(ServerboundSeenAdvancementsPacket.Action pAction, @Nullable ResourceLocation pTab) -
ServerboundSeenAdvancementsPacket
-
-
Method Details
-
openedTab
-
closedScreen
-
write
Writes the raw packet data to the data stream. -
type
- Specified by:
type
in interfacePacket<ServerGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handle
in interfacePacket<ServerGamePacketListener>
-
getAction
-
getTab
-