Class ScoreboardTeamManager
java.lang.Object
com.petrolpark.core.team.scoreboard.ScoreboardTeamManager
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<net.minecraft.world.scores.PlayerTeam, ScoreboardTeam> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> voidapplyPatch(net.minecraft.world.level.Level level, String teamName, net.minecraft.core.component.DataComponentPatch patch) <T> voiddataComponentChanged(net.minecraft.world.level.Level level, ScoreboardTeam team, net.minecraft.core.component.DataComponentPatch patch) voidlevelLoaded(net.minecraft.world.level.LevelAccessor level) load(net.minecraft.world.level.Level overworld, net.minecraft.nbt.CompoundTag tag) voidplayerLogin(net.minecraft.world.entity.player.Player player) voidplayerLogout(net.minecraft.world.entity.player.Player player)
-
Field Details
-
teams
-
savedData
-
-
Constructor Details
-
ScoreboardTeamManager
public ScoreboardTeamManager()
-
-
Method Details
-
get
-
dataComponentChanged
public <T> void dataComponentChanged(net.minecraft.world.level.Level level, ScoreboardTeam team, @Nonnull net.minecraft.core.component.DataComponentPatch patch) -
applyPatch
public <T> void applyPatch(net.minecraft.world.level.Level level, String teamName, net.minecraft.core.component.DataComponentPatch patch) -
playerLogin
public void playerLogin(net.minecraft.world.entity.player.Player player) -
playerLogout
public void playerLogout(net.minecraft.world.entity.player.Player player) -
levelLoaded
public void levelLoaded(net.minecraft.world.level.LevelAccessor level) -
load
protected ScoreboardTeamManager.ScoreboardTeamSavedData load(net.minecraft.world.level.Level overworld, net.minecraft.nbt.CompoundTag tag)
-