@Environment(value=CLIENT) public class ClientAdvancementManager extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ClientAdvancementManager.Listener |
Modifier and Type | Field and Description |
---|---|
private Map<Advancement,AdvancementProgress> |
advancementProgresses |
private MinecraftClient |
client |
private ClientAdvancementManager.Listener |
listener |
private static Logger |
LOGGER |
private AdvancementManager |
manager |
private Advancement |
selectedTab |
Constructor and Description |
---|
ClientAdvancementManager(MinecraftClient client) |
Modifier and Type | Method and Description |
---|---|
AdvancementManager |
getManager() |
void |
onAdvancements(AdvancementUpdateS2CPacket packet) |
void |
selectTab(Advancement tab,
boolean local) |
void |
setListener(ClientAdvancementManager.Listener listener) |
private static final Logger LOGGER
private final MinecraftClient client
private final AdvancementManager manager
private final Map<Advancement,AdvancementProgress> advancementProgresses
@Nullable private ClientAdvancementManager.Listener listener
@Nullable private Advancement selectedTab
public ClientAdvancementManager(MinecraftClient client)
public void onAdvancements(AdvancementUpdateS2CPacket packet)
public AdvancementManager getManager()
public void selectTab(@Nullable Advancement tab, boolean local)
public void setListener(@Nullable ClientAdvancementManager.Listener listener)