Package com.petrolpark.team.scoreboard
Class ScoreboardTeamManager
java.lang.Object
com.petrolpark.team.scoreboard.ScoreboardTeamManager
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected net.minecraft.world.scores.Scoreboardprotected final Map<net.minecraft.world.scores.PlayerTeam,ScoreboardTeam> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddataChanged(net.minecraft.world.level.Level level, ScoreboardTeam team, ITeamDataType<?> dataType) 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) voidsetData(net.minecraft.world.level.Level level, String teamName, ITeamDataType<?> dataType, net.minecraft.nbt.CompoundTag dataTag)
-
Field Details
-
teams
-
scoreboard
protected net.minecraft.world.scores.Scoreboard scoreboard -
savedData
-
-
Constructor Details
-
ScoreboardTeamManager
public ScoreboardTeamManager()
-
-
Method Details
-
get
-
dataChanged
public void dataChanged(net.minecraft.world.level.Level level, ScoreboardTeam team, ITeamDataType<?> dataType) -
setData
public void setData(net.minecraft.world.level.Level level, String teamName, ITeamDataType<?> dataType, net.minecraft.nbt.CompoundTag dataTag) -
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)
-