类的使用
net.minecraft.scoreboard.ScoreboardObjective
-
使用ScoreboardObjective的程序包 程序包 说明 net.minecraft.client.gui.hud net.minecraft.command.argument net.minecraft.network.packet.s2c.play net.minecraft.scoreboard net.minecraft.server.command -
-
net.minecraft.client.gui.hud中ScoreboardObjective的使用
参数类型为ScoreboardObjective的net.minecraft.client.gui.hud中的方法 修饰符和类型 方法 说明 voidPlayerListHud. render(MatrixStack matrices, int int2, Scoreboard scoreboard, @Nullable ScoreboardObjective objective)private voidPlayerListHud. renderScoreboardObjective(ScoreboardObjective objective, int int2, String string, int int3, int int4, PlayerListEntry entry, MatrixStack matrices)private voidInGameHud. renderScoreboardSidebar(MatrixStack matrices, ScoreboardObjective objective) -
net.minecraft.command.argument中ScoreboardObjective的使用
返回ScoreboardObjective的net.minecraft.command.argument中的方法 修饰符和类型 方法 说明 static ScoreboardObjectiveScoreboardObjectiveArgumentType. getObjective(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name)static ScoreboardObjectiveScoreboardObjectiveArgumentType. getWritableObjective(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) -
net.minecraft.network.packet.s2c.play中ScoreboardObjective的使用
参数类型为ScoreboardObjective的net.minecraft.network.packet.s2c.play中的构造器 构造器 说明 ScoreboardDisplayS2CPacket(int slot, @Nullable ScoreboardObjective objective)ScoreboardObjectiveUpdateS2CPacket(ScoreboardObjective objective, int mode) -
net.minecraft.scoreboard中ScoreboardObjective的使用
声明为ScoreboardObjective的net.minecraft.scoreboard中的字段 修饰符和类型 字段 说明 private @Nullable ScoreboardObjectiveScoreboardPlayerScore. objectiveprivate ScoreboardObjective[]Scoreboard. objectiveSlots类型参数类型为ScoreboardObjective的net.minecraft.scoreboard中的字段 修饰符和类型 字段 说明 private Map<String,ScoreboardObjective>Scoreboard. objectivesprivate Set<ScoreboardObjective>ServerScoreboard. objectivesprivate Map<ScoreboardCriterion,List<ScoreboardObjective>>Scoreboard. objectivesByCriterionprivate Map<String,Map<ScoreboardObjective,ScoreboardPlayerScore>>Scoreboard. playerObjectives返回ScoreboardObjective的net.minecraft.scoreboard中的方法 修饰符和类型 方法 说明 ScoreboardObjectiveScoreboard. addObjective(String name, ScoreboardCriterion criterion, Text displayName, ScoreboardCriterion.RenderType renderType)@Nullable ScoreboardObjectiveScoreboard. getNullableObjective(@Nullable String name)ScoreboardObjectiveScoreboard. getObjective(String name)@Nullable ScoreboardObjectiveScoreboardPlayerScore. getObjective()@Nullable ScoreboardObjectiveScoreboard. getObjectiveForSlot(int slot)返回变量类型为ScoreboardObjective的类型的net.minecraft.scoreboard中的方法 修饰符和类型 方法 说明 Collection<ScoreboardObjective>Scoreboard. getObjectives()Map<ScoreboardObjective,ScoreboardPlayerScore>Scoreboard. getPlayerObjectives(String string)参数类型为ScoreboardObjective的net.minecraft.scoreboard中的构造器 构造器 说明 ScoreboardPlayerScore(Scoreboard scoreboard, ScoreboardObjective objective, String playerName) -
net.minecraft.server.command中ScoreboardObjective的使用
参数类型为ScoreboardObjective的net.minecraft.server.command中的方法 修饰符和类型 方法 说明 private static intScoreboardCommand. executeAdd(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score)private static intScoreboardCommand. executeEnable(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective)private static intScoreboardCommand. executeGet(ServerCommandSource source, String target, ScoreboardObjective objective)private static intScoreboardCommand. executeModifyObjective(ServerCommandSource source, ScoreboardObjective objective, Text displayName)private static intScoreboardCommand. executeModifyRenderType(ServerCommandSource source, ScoreboardObjective objective, ScoreboardCriterion.RenderType type)private static intScoreboardCommand. executeOperation(ServerCommandSource source, Collection<String> targets, ScoreboardObjective targetObjective, OperationArgumentType.Operation operation, Collection<String> sources, ScoreboardObjective sourceObjectives)private static intScoreboardCommand. executeRemove(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score)private static intScoreboardCommand. executeRemoveObjective(ServerCommandSource source, ScoreboardObjective objective)private static intScoreboardCommand. executeReset(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective)private static intScoreboardCommand. executeSet(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, int score)private static intScoreboardCommand. executeSetDisplay(ServerCommandSource source, int slot, ScoreboardObjective objective)private static ServerCommandSourceExecuteCommand. executeStoreScore(ServerCommandSource source, Collection<String> targets, ScoreboardObjective objective, boolean requestResult)private static ScoreboardPlayerScoreTriggerCommand. getScore(ServerPlayerEntity player, ScoreboardObjective objective)
-