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 SummaryNested classes/interfaces inherited from interface net.minecraft.commands.SharedSuggestionProviderSharedSuggestionProvider.ElementSuggestionType, SharedSuggestionProvider.TextCoordinates
- 
Field SummaryFields inherited from class net.minecraft.commands.CommandSourceStackERROR_NOT_ENTITY, ERROR_NOT_PLAYER, source
- 
Constructor SummaryConstructorsConstructorDescriptionClientCommandSourceStack(CommandSource source, Vec3 position, Vec2 rotation, int permission, String plainTextName, Component displayName, Entity executing) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the advancement from the id from the client side where the advancement needs to be visible to the player.Returns the list of teams from the client side.getLevel()Returns the list of online player names from the client side.Returns theRecipeManagerfrom the client side.Returns aStreamof recipe ids that are available on the client.Returns the scoreboard from the client side.Returns the level from the client side.levels()Returns a set ofResourceKeyfor levels from the client side.Returns theRegistryAccessfrom the client side.voidsendSuccess(Supplier<Component> message, boolean sendToAdmins) Sends a success message without attempting to get the server side list of adminsMethods inherited from class net.minecraft.commands.CommandSourceStackcustomSuggestion, enabledFeatures, facing, facing, getAnchor, getAvailableSounds, getChatMessageChainer, getDisplayName, getEntity, getEntityOrException, getPlayer, getPlayerOrException, getPosition, getReturnValueConsumer, getRotation, getSigningContext, getTextName, hasPermission, isPlayer, onCommandComplete, sendChatMessage, sendFailure, sendSystemMessage, shouldFilterMessageTo, suggestRegistryElements, withAnchor, withCallback, withCallback, withEntity, withLevel, withMaximumPermission, withPermission, withPosition, withReturnValueConsumer, withRotation, withSigningContext, withSource, withSuppressedOutputMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.commands.SharedSuggestionProvidergetAbsoluteCoordinates, getCustomTabSugggestions, getRelevantCoordinates, getSelectedEntities, suggestRegistryElements
- 
Constructor Details- 
ClientCommandSourceStack
 
- 
- 
Method Details- 
sendSuccessSends a success message without attempting to get the server side list of admins- Overrides:
- sendSuccessin class- CommandSourceStack
 
- 
getAllTeamsReturns the list of teams from the client side.- Specified by:
- getAllTeamsin interface- SharedSuggestionProvider
- Overrides:
- getAllTeamsin class- CommandSourceStack
- Returns:
- the list of teams from the client side
 
- 
getOnlinePlayerNamesReturns the list of online player names from the client side.- Specified by:
- getOnlinePlayerNamesin interface- SharedSuggestionProvider
- Overrides:
- getOnlinePlayerNamesin class- CommandSourceStack
- Returns:
- the list of online player names from the client side
 
- 
getRecipeNamesReturns aStreamof recipe ids that are available on the client.- Specified by:
- getRecipeNamesin interface- SharedSuggestionProvider
- Overrides:
- getRecipeNamesin class- CommandSourceStack
- Returns:
- a Streamof recipe ids that are available on the client
 
- 
levelsReturns a set ofResourceKeyfor levels from the client side.- Specified by:
- levelsin interface- SharedSuggestionProvider
- Overrides:
- levelsin class- CommandSourceStack
- Returns:
- a set of ResourceKeyfor levels from the client side
 
- 
registryAccessReturns theRegistryAccessfrom the client side.- Specified by:
- registryAccessin interface- SharedSuggestionProvider
- Overrides:
- registryAccessin class- CommandSourceStack
- Returns:
- the RegistryAccessfrom the client side
 
- 
getScoreboardReturns the scoreboard from the client side.- Returns:
- the scoreboard from the client side
 
- 
getAdvancementReturns 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 from the client side where the advancement needs to be visible to the player
 
- 
getRecipeManagerReturns theRecipeManagerfrom the client side.- Returns:
- the RecipeManagerfrom the client side
 
- 
getUnsidedLevelReturns the level from the client side.- Returns:
- the level from the client side
 
- 
getServer- Overrides:
- getServerin class- CommandSourceStack
- Throws:
- UnsupportedOperationException- because the server isn't available on the client
 
- 
getLevel- Overrides:
- getLevelin class- CommandSourceStack
- Throws:
- UnsupportedOperationException- because the server side level isn't available on the client side
 
 
-