Interface ICommandSourceStackExtension
- All Known Implementing Classes:
ClientCommandSourceStack
,net.minecraft.commands.CommandSourceStack
,CommandTests.ErrorCatchingStack
public interface ICommandSourceStackExtension
Additional methods for
CommandSourceStack
so that commands and arguments can access various things without directly referencing using server specific classes-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable net.minecraft.advancements.AdvancementHolder
getAdvancement
(net.minecraft.resources.ResourceLocation id) default net.minecraft.world.scores.Scoreboard
default net.minecraft.world.level.Level
private net.minecraft.commands.CommandSourceStack
self()
-
Method Details
-
self
private net.minecraft.commands.CommandSourceStack self() -
getScoreboard
default net.minecraft.world.scores.Scoreboard getScoreboard()- Returns:
- the scoreboard
-
getAdvancement
@Nullable default @Nullable net.minecraft.advancements.AdvancementHolder getAdvancement(net.minecraft.resources.ResourceLocation id) - Returns:
- the advancement from the id
-
getUnsidedLevel
default net.minecraft.world.level.Level getUnsidedLevel()- Returns:
- the level but without being specifically the server side level
-