Skip to content

Detecting if a player has an advancement and returning a boolean. #2382

Discussion options

You must be logged in to vote

Of course there is. Any functionality available in vanilla Minecraft would have an implementation somewhere. That's how coding works.

As you are probably aware, static methods are rare - because Java has a better way to represent those. (OOP, as people call it.) It's probably named has or get or isDone or something like that, on the player or a class related to advancements.

Let's start from one thing we know: ServerPlayerEntity. (I assume serverside here, clients need to request advancement through packet.) There are two methos with the name "advancement" in it. One of them is clearly not the one we want, so we investigate the other one, getAdvancementTracker.

We reach PlayerAdvancementT…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Desynq
Comment options

Answer selected by Desynq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants