public class ClientSuggestionProvider extends java.lang.Object implements ISuggestionProvider
ISuggestionProvider.Coordinates
Modifier and Type | Field and Description |
---|---|
private ClientPlayNetHandler |
connection |
private int |
currentTransaction |
private java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
future |
private Minecraft |
mc |
Constructor and Description |
---|
ClientSuggestionProvider(ClientPlayNetHandler p_i49558_1_,
Minecraft p_i49558_2_) |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
formatDouble(double p_209001_0_) |
private static java.lang.String |
formatInt(int p_209002_0_) |
java.util.Collection<ISuggestionProvider.Coordinates> |
func_217293_r() |
java.util.Collection<ISuggestionProvider.Coordinates> |
func_217294_q() |
java.util.Collection<java.lang.String> |
getPlayerNames() |
java.util.stream.Stream<ResourceLocation> |
getRecipeResourceLocations() |
java.util.Collection<ResourceLocation> |
getSoundResourceLocations() |
java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> |
getSuggestionsFromServer(com.mojang.brigadier.context.CommandContext<ISuggestionProvider> context,
com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder) |
java.util.Collection<java.lang.String> |
getTargetedEntity() |
java.util.Collection<java.lang.String> |
getTeamNames() |
void |
handleResponse(int transaction,
com.mojang.brigadier.suggestion.Suggestions result) |
boolean |
hasPermissionLevel(int level) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_201725_a, func_209000_a, func_210511_a, func_210512_a, func_210514_a, func_211269_a, func_212476_a, suggest, suggest, suggest, suggestIterable, suggestIterable
private final ClientPlayNetHandler connection
private final Minecraft mc
private int currentTransaction
private java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> future
public ClientSuggestionProvider(ClientPlayNetHandler p_i49558_1_, Minecraft p_i49558_2_)
public java.util.Collection<java.lang.String> getPlayerNames()
getPlayerNames
in interface ISuggestionProvider
public java.util.Collection<java.lang.String> getTargetedEntity()
getTargetedEntity
in interface ISuggestionProvider
public java.util.Collection<java.lang.String> getTeamNames()
getTeamNames
in interface ISuggestionProvider
public java.util.Collection<ResourceLocation> getSoundResourceLocations()
getSoundResourceLocations
in interface ISuggestionProvider
public java.util.stream.Stream<ResourceLocation> getRecipeResourceLocations()
getRecipeResourceLocations
in interface ISuggestionProvider
public boolean hasPermissionLevel(int level)
hasPermissionLevel
in interface ISuggestionProvider
public java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getSuggestionsFromServer(com.mojang.brigadier.context.CommandContext<ISuggestionProvider> context, com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder)
getSuggestionsFromServer
in interface ISuggestionProvider
private static java.lang.String formatDouble(double p_209001_0_)
private static java.lang.String formatInt(int p_209002_0_)
public java.util.Collection<ISuggestionProvider.Coordinates> func_217294_q()
func_217294_q
in interface ISuggestionProvider
public java.util.Collection<ISuggestionProvider.Coordinates> func_217293_r()
func_217293_r
in interface ISuggestionProvider
public void handleResponse(int transaction, com.mojang.brigadier.suggestion.Suggestions result)