Class ClientboundUpdateAdvancementsPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundUpdateAdvancementsPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundUpdateAdvancementsPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<AdvancementHolder> private final Map
<ResourceLocation, AdvancementProgress> private final Set
<ResourceLocation> private final boolean
private final boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundUpdateAdvancementsPacket
(boolean pReset, Collection<AdvancementHolder> pAdded, Set<ResourceLocation> pRemoved, Map<ResourceLocation, AdvancementProgress> pProgress, boolean pShowAdvancements) private
-
Method Summary
Modifier and TypeMethodDescriptiongetAdded()
void
handle
(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.boolean
boolean
type()
private void
write
(RegistryFriendlyByteBuf pBuffer) 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
public static final StreamCodec<RegistryFriendlyByteBuf,ClientboundUpdateAdvancementsPacket> STREAM_CODEC -
reset
private final boolean reset -
added
-
removed
-
progress
-
showAdvancements
private final boolean showAdvancements
-
-
Constructor Details
-
ClientboundUpdateAdvancementsPacket
public ClientboundUpdateAdvancementsPacket(boolean pReset, Collection<AdvancementHolder> pAdded, Set<ResourceLocation> pRemoved, Map<ResourceLocation, AdvancementProgress> pProgress, boolean pShowAdvancements) -
ClientboundUpdateAdvancementsPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getAdded
-
getRemoved
-
getProgress
-
shouldReset
public boolean shouldReset() -
shouldShowAdvancements
public boolean shouldShowAdvancements()
-