Package net.minecraftforge.client
Class ClientCommandSourceStack
java.lang.Object
net.minecraft.commands.CommandSourceStack
net.minecraftforge.client.ClientCommandSourceStack
- All Implemented Interfaces:
SharedSuggestionProvider,IForgeCommandSourceStack
overrides for
CommandSourceStack so that the methods will run successfully client side-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.commands.SharedSuggestionProvider
SharedSuggestionProvider.ElementSuggestionType, SharedSuggestionProvider.TextCoordinates -
Field Summary
Fields inherited from class net.minecraft.commands.CommandSourceStack
ERROR_NOT_ENTITY, ERROR_NOT_PLAYER -
Constructor Summary
ConstructorsConstructorDescriptionClientCommandSourceStack(CommandSource source, Vec3 position, Vec2 rotation, int permission, String plainTextName, Component displayName, Entity executing) -
Method Summary
Modifier and TypeMethodDescriptionGets the advancement from the id from the client side where the advancement needs to be visible to the playerGets the list of teams from the client sidegetLevel()Gets the list of online player names from the client sideGets theRecipeManagerfrom the client sideGets aStreamof recipe ids that are available on the clientGets the scoreboard from the client sideGets the level from the client sidelevels()Gets a set ofResourceKeyfor levels from the client sideGets theRegistryAccessfrom the client sidevoidsendSuccess(Component message, boolean sendToAdmins) Sends a success message without attempting to get the server side list of adminsMethods inherited from class net.minecraft.commands.CommandSourceStack
customSuggestion, facing, facing, getAnchor, getAvailableSoundEvents, getDisplayName, getEntity, getEntityOrException, getPlayerOrException, getPosition, getRotation, getTextName, hasPermission, onCommandComplete, sendFailure, suggestRegistryElements, withAnchor, withCallback, withCallback, withEntity, withLevel, withMaximumPermission, withPermission, withPosition, withRotation, withSource, withSuppressedOutputMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.commands.SharedSuggestionProvider
getAbsoluteCoordinates, getRelevantCoordinates, getSelectedEntities, suggestRegistryElements
-
Constructor Details
-
ClientCommandSourceStack
-
-
Method Details
-
sendSuccess
Sends a success message without attempting to get the server side list of admins- Overrides:
sendSuccessin classCommandSourceStack
-
getAllTeams
Gets the list of teams from the client side- Specified by:
getAllTeamsin interfaceSharedSuggestionProvider- Overrides:
getAllTeamsin classCommandSourceStack
-
getOnlinePlayerNames
Gets the list of online player names from the client side- Specified by:
getOnlinePlayerNamesin interfaceSharedSuggestionProvider- Overrides:
getOnlinePlayerNamesin classCommandSourceStack
-
getRecipeNames
Gets aStreamof recipe ids that are available on the client- Specified by:
getRecipeNamesin interfaceSharedSuggestionProvider- Overrides:
getRecipeNamesin classCommandSourceStack
-
levels
Gets a set ofResourceKeyfor levels from the client side- Specified by:
levelsin interfaceSharedSuggestionProvider- Overrides:
levelsin classCommandSourceStack
-
registryAccess
Gets theRegistryAccessfrom the client side- Specified by:
registryAccessin interfaceSharedSuggestionProvider- Overrides:
registryAccessin classCommandSourceStack
-
getScoreboard
Gets the scoreboard from the client side- Returns:
- the scoreboard
-
getAdvancement
Gets the advancement from the id from the client side where the advancement needs to be visible to the player- Returns:
- the advancement from the id
-
getRecipeManager
Gets theRecipeManagerfrom the client side- Returns:
- the recipe manager
-
getUnsidedLevel
Gets the level from the client side- Returns:
- the level but without being specifically the server side level
-
getServer
- Overrides:
getServerin classCommandSourceStack- Throws:
UnsupportedOperationException- because the server isn't available on the client
-
getLevel
- Overrides:
getLevelin classCommandSourceStack- Throws:
UnsupportedOperationException- because the server side level isn't available on the client side
-