ScoreAccess .java

net.minecraft.world.scores.ScoreAccess (interface): members: numberFormatOverride, unlock, increment, lock, locked, reset, set, display, add, get.

net.minecraft.world.scoresinterface38 linescommon665 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (2)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

ScoreAccess.java38 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.scores;
2
3
import net.minecraft.network.chat.Component;
4
import net.minecraft.network.chat.numbers.NumberFormat;
5
import org.jspecify.annotations.Nullable;
6
7
public interface ScoreAccess {
8
	int get();
9
10
	void set(int value);
11
12
	default int add(final int count) {
13
		int newValue = this.get() + count;
14
		this.set(newValue);
15
		return newValue;
16
	}
17
18
	default int increment() {
19
		return this.add(1);
20
	}
21
22
	default void reset() {
23
		this.set(0);
24
	}
25
26
	boolean locked();
27
28
	void unlock();
29
30
	void lock();
31
32
	@Nullable Component display();
33
34
	void display(final @Nullable Component display);
35
36
	void numberFormatOverride(@Nullable NumberFormat numberFormat);
37
}
38

Decompiled Minecraft 26.3 source of ScoreAccess (net/minecraft/world/scores/ScoreAccess.java) with Mojang official mappings, stored verbatim on the site.