public class AdvancementUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private boolean |
clearCurrent |
private Map<Identifier,Advancement.Task> |
toEarn |
private Set<Identifier> |
toRemove |
private Map<Identifier,AdvancementProgress> |
toSetProgress |
Constructor and Description |
---|
AdvancementUpdateS2CPacket() |
AdvancementUpdateS2CPacket(boolean clearCurrent,
Collection<Advancement> toEarn,
Set<Identifier> toRemove,
Map<Identifier,AdvancementProgress> toSetProgress) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
Set<Identifier> |
getAdvancementIdsToRemove() |
Map<Identifier,Advancement.Task> |
getAdvancementsToEarn() |
Map<Identifier,AdvancementProgress> |
getAdvancementsToProgress() |
void |
read(PacketByteBuf buf) |
boolean |
shouldClearCurrent() |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private boolean clearCurrent
private Map<Identifier,Advancement.Task> toEarn
private Set<Identifier> toRemove
private Map<Identifier,AdvancementProgress> toSetProgress
public AdvancementUpdateS2CPacket()
public AdvancementUpdateS2CPacket(boolean clearCurrent, Collection<Advancement> toEarn, Set<Identifier> toRemove, Map<Identifier,AdvancementProgress> toSetProgress)
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
@Environment(value=CLIENT) public Map<Identifier,Advancement.Task> getAdvancementsToEarn()
@Environment(value=CLIENT) public Set<Identifier> getAdvancementIdsToRemove()
@Environment(value=CLIENT) public Map<Identifier,AdvancementProgress> getAdvancementsToProgress()
@Environment(value=CLIENT) public boolean shouldClearCurrent()