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
Modifier and TypeFieldDescriptionprivate final List
<AdvancementHolder> private final Map
<ResourceLocation, AdvancementProgress> private final Set
<ResourceLocation> private final boolean
-
Constructor Summary
ModifierConstructorDescriptionClientboundUpdateAdvancementsPacket
(boolean p_133560_, Collection<AdvancementHolder> p_133561_, Set<ResourceLocation> p_133562_, Map<ResourceLocation, AdvancementProgress> p_133563_) private
-
Method Summary
Modifier and TypeMethodDescriptiongetAdded()
void
handle
(ClientGamePacketListener p_133569_) boolean
type()
private void
write
(RegistryFriendlyByteBuf p_319915_) 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
-
-
Constructor Details
-
ClientboundUpdateAdvancementsPacket
public ClientboundUpdateAdvancementsPacket(boolean p_133560_, Collection<AdvancementHolder> p_133561_, Set<ResourceLocation> p_133562_, Map<ResourceLocation, AdvancementProgress> p_133563_) -
ClientboundUpdateAdvancementsPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getAdded
-
getRemoved
-
getProgress
-
shouldReset
public boolean shouldReset()
-