Interface ICommandSourceStackExtension
- All Known Implementing Classes:
ClientCommandSourceStack, CommandSourceStack
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 AdvancementHolderdefault Scoreboarddefault Optional<com.mojang.authlib.GameProfile> Returns the game profile of the command source, if available.default Levelprivate CommandSourceStackself()
-
Method Details
-
self
-
getScoreboard
- Returns:
- the scoreboard
-
getAdvancement
- Returns:
- the advancement from the id
-
getUnsidedLevel
- Returns:
- the level but without being specifically the server side level
-
getSourceProfile
Returns the game profile of the command source, if available.- Returns:
- the game profile of the command source, if available
-