@ApiStatus.Internal public class ClientHelperImpl extends java.lang.Object implements ClientHelper
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientHelperImpl.LegacyWrapperViewSearchBuilder |
static class |
ClientHelperImpl.ViewSearchBuilder |
| Modifier and Type | Field and Description |
|---|---|
net.minecraft.util.LazyValue<java.lang.Boolean> |
isAprilFools |
net.minecraft.util.LazyValue<java.lang.Boolean> |
isYog |
| Constructor and Description |
|---|
ClientHelperImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<EntryStack> |
_getInventoryItemsTypes() |
boolean |
canUseMovePackets() |
static ClientHelperImpl |
getInstance() |
java.util.List<net.minecraft.item.ItemStack> |
getInventoryItemsTypes() |
java.lang.String |
getModFromModId(java.lang.String modid)
Gets the mod from a modid
|
boolean |
isCheating()
Checks if cheating is enabled
|
void |
openRecipeViewingScreen(java.util.Map<RecipeCategory<?>,java.util.List<RecipeDisplay>> map)
Deprecated.
|
void |
openRecipeViewingScreen(java.util.Map<RecipeCategory<?>,java.util.List<RecipeDisplay>> map,
@Nullable net.minecraft.util.ResourceLocation category,
@Nullable EntryStack ingredientNotice,
@Nullable EntryStack resultNotice)
Deprecated.
|
boolean |
openView(ClientHelper.ViewSearchBuilder builder) |
void |
sendDeletePacket()
Tries to delete the player's cursor item
|
void |
setCheating(boolean cheating)
Sets current cheating mode
Should save the config in
ConfigManager. |
boolean |
tryCheatingEntry(EntryStack entry)
Tries to cheat stack using either packets or commands.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendModIdToTooltips, executeRecipeKeyBind, executeRecipeKeyBind, executeUsageKeyBind, executeUsageKeyBind, executeViewAllRecipesFromCategories, executeViewAllRecipesFromCategory, executeViewAllRecipesKeyBind, getFormattedModFromIdentifier, getFormattedModFromItem, getFormattedModFromModId, getModFromIdentifier, getModFromItem, tryCheatingStack@ApiStatus.Internal public final net.minecraft.util.LazyValue<java.lang.Boolean> isYog
@ApiStatus.Internal public final net.minecraft.util.LazyValue<java.lang.Boolean> isAprilFools
@ApiStatus.Internal public static ClientHelperImpl getInstance()
getInstance in interface ClientHelperClientHelperImplClientHelper.getInstance()public java.lang.String getModFromModId(java.lang.String modid)
ClientHelpergetModFromModId in interface ClientHelpermodid - the modid of the modpublic boolean isCheating()
ClientHelperisCheating in interface ClientHelperpublic void setCheating(boolean cheating)
ClientHelperConfigManager.setCheating in interface ClientHelpercheating - the new cheating modepublic void sendDeletePacket()
ClientHelpersendDeletePacket in interface ClientHelperpublic boolean tryCheatingEntry(EntryStack entry)
ClientHelpertryCheatingEntry in interface ClientHelperentry - the stack to cheat inpublic java.util.List<net.minecraft.item.ItemStack> getInventoryItemsTypes()
getInventoryItemsTypes in interface ClientHelper@ApiStatus.Internal public java.util.Set<EntryStack> _getInventoryItemsTypes()
@ApiStatus.ScheduledForRemoval @Deprecated public void openRecipeViewingScreen(java.util.Map<RecipeCategory<?>,java.util.List<RecipeDisplay>> map)
ClientHelperPreRecipeViewingScreen if not set
Opens RecipeViewingScreen if set to default
Opens VillagerRecipeViewingScreen if set to villageropenRecipeViewingScreen in interface ClientHelpermap - the map of recipes@ApiStatus.ScheduledForRemoval @Deprecated @ApiStatus.Internal public void openRecipeViewingScreen(java.util.Map<RecipeCategory<?>,java.util.List<RecipeDisplay>> map, @Nullable @Nullable net.minecraft.util.ResourceLocation category, @Nullable @Nullable EntryStack ingredientNotice, @Nullable @Nullable EntryStack resultNotice)
public boolean openView(ClientHelper.ViewSearchBuilder builder)
openView in interface ClientHelperpublic boolean canUseMovePackets()
canUseMovePackets in interface ClientHelper