Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- applyPendingTags() - Method in record class com.example.uselocalrecipes.recipe.LocalRecipeData
-
Must run on the client thread before the recipes reach the viewers, otherwise tag based ingredients fail.
B
- BasicRecipeTransferHandlerMixin - Class in com.example.uselocalrecipes.mixin.jei
-
Takes over recipe transfer when JEI is not installed on the server, where JEI's own transfer would only show a "no server" error.
- BasicRecipeTransferHandlerMixin() - Constructor for class com.example.uselocalrecipes.mixin.jei.BasicRecipeTransferHandlerMixin
C
- ClientRecipeTransfer - Class in com.example.uselocalrecipes.recipe
-
Moves the ingredients of a recipe into a crafting container by simulating the clicks a player would do.
- clientSideTransfer - Variable in class com.example.uselocalrecipes.config.UseLocalRecipesConfig
-
Allows JEI to transfer recipes even when JEI is not installed on the server.
- com.example.uselocalrecipes - package com.example.uselocalrecipes
- com.example.uselocalrecipes.config - package com.example.uselocalrecipes.config
- com.example.uselocalrecipes.mixin.jei - package com.example.uselocalrecipes.mixin.jei
- com.example.uselocalrecipes.platform - package com.example.uselocalrecipes.platform
- com.example.uselocalrecipes.platform.services - package com.example.uselocalrecipes.platform.services
- com.example.uselocalrecipes.recipe - package com.example.uselocalrecipes.recipe
- com.example.uselocalrecipes.runtime - package com.example.uselocalrecipes.runtime
- Constants - Class in com.example.uselocalrecipes
- Constants() - Constructor for class com.example.uselocalrecipes.Constants
- createModDataPacks() - Method in class com.example.uselocalrecipes.platform.NeoForgeRecipePlatform
- createModDataPacks() - Method in interface com.example.uselocalrecipes.platform.services.IRecipePlatform
-
A data pack for every loaded mod, lowest priority first.
E
- EMPTY - Static variable in record class com.example.uselocalrecipes.recipe.LocalRecipeData
- enabled - Variable in class com.example.uselocalrecipes.config.UseLocalRecipesConfig
-
Whether this mod does anything at all.
- equals(Object) - Method in record class com.example.uselocalrecipes.recipe.LocalRecipeData
-
Indicates whether some other object is "equal to" this one.
F
- failedCount() - Method in record class com.example.uselocalrecipes.recipe.LocalRecipeData
-
Returns the value of the
failedCountrecord component. - fileCount() - Method in record class com.example.uselocalrecipes.recipe.LocalRecipeData
-
Returns the value of the
fileCountrecord component.
G
- get() - Static method in class com.example.uselocalrecipes.config.UseLocalRecipesConfig
- getConfigDir() - Method in class com.example.uselocalrecipes.platform.NeoForgePlatformHelper
- getConfigDir() - Method in interface com.example.uselocalrecipes.platform.services.IPlatformHelper
- getEnvironmentName() - Method in interface com.example.uselocalrecipes.platform.services.IPlatformHelper
- getPlatformName() - Method in class com.example.uselocalrecipes.platform.NeoForgePlatformHelper
- getPlatformName() - Method in interface com.example.uselocalrecipes.platform.services.IPlatformHelper
H
- hashCode() - Method in record class com.example.uselocalrecipes.recipe.LocalRecipeData
-
Returns a hash code value for this object.
I
- injectRecipes(Set<RecipeType<?>>, RecipeMap) - Method in class com.example.uselocalrecipes.platform.NeoForgeRecipePlatform
- injectRecipes(Set<RecipeType<?>>, RecipeMap) - Method in interface com.example.uselocalrecipes.platform.services.IRecipePlatform
-
Hands the merged recipes to the loader's client recipe synchronization, so viewers see them as server data.
- IPlatformHelper - Interface in com.example.uselocalrecipes.platform.services
- IRecipePlatform - Interface in com.example.uselocalrecipes.platform.services
-
Loader specific parts of the recipe flow, implemented by the fabric and neoforge modules.
- isDevelopmentEnvironment() - Method in class com.example.uselocalrecipes.platform.NeoForgePlatformHelper
- isDevelopmentEnvironment() - Method in interface com.example.uselocalrecipes.platform.services.IPlatformHelper
- isInjecting() - Static method in class com.example.uselocalrecipes.runtime.RecipeSyncController
-
Used by the platforms to ignore the sync events their own injection causes.
- isModLoaded(String) - Method in class com.example.uselocalrecipes.platform.NeoForgePlatformHelper
- isModLoaded(String) - Method in interface com.example.uselocalrecipes.platform.services.IPlatformHelper
L
- load() - Static method in class com.example.uselocalrecipes.config.UseLocalRecipesConfig
- load(Class<T>) - Static method in class com.example.uselocalrecipes.platform.Services
-
Loads the platform implementation of a service, see the files in META-INF/services.
- load(RegistryAccess, List<PackResources>) - Static method in class com.example.uselocalrecipes.recipe.LocalRecipeLoader
- LocalRecipeData - Record Class in com.example.uselocalrecipes.recipe
-
Result of reading the recipes that are available on the client machine.
- LocalRecipeData(RecipeMap, int, int, List<Registry.PendingTags<?>>) - Constructor for record class com.example.uselocalrecipes.recipe.LocalRecipeData
-
Creates an instance of a
LocalRecipeDatarecord class. - LocalRecipeLoader - Class in com.example.uselocalrecipes.recipe
-
Reads the recipe files that ship with the game, the mods and the local data packs.
- LOG - Static variable in class com.example.uselocalrecipes.Constants
- logFailedRecipes - Variable in class com.example.uselocalrecipes.config.UseLocalRecipesConfig
-
Logs every local recipe file that could not be parsed.
M
- merge(RecipeMap, Set<RecipeType<?>>, RecipeMap, boolean) - Static method in class com.example.uselocalrecipes.recipe.RecipeMerger
-
Deduplicates by id with the server always winning.
- MOD_ID - Static variable in class com.example.uselocalrecipes.Constants
- MOD_NAME - Static variable in class com.example.uselocalrecipes.Constants
N
- NeoForgePlatformHelper - Class in com.example.uselocalrecipes.platform
- NeoForgePlatformHelper() - Constructor for class com.example.uselocalrecipes.platform.NeoForgePlatformHelper
- NeoForgeRecipePlatform - Class in com.example.uselocalrecipes.platform
- NeoForgeRecipePlatform() - Constructor for class com.example.uselocalrecipes.platform.NeoForgeRecipePlatform
O
- onClientDisconnect() - Static method in class com.example.uselocalrecipes.runtime.RecipeSyncController
- onClientJoin() - Static method in class com.example.uselocalrecipes.runtime.RecipeSyncController
- onClientTick() - Static method in class com.example.uselocalrecipes.runtime.RecipeSyncController
- onServerRecipesReceived(Set<RecipeType<?>>, RecipeMap) - Static method in class com.example.uselocalrecipes.runtime.RecipeSyncController
P
- pendingTags() - Method in record class com.example.uselocalrecipes.recipe.LocalRecipeData
-
Returns the value of the
pendingTagsrecord component. - PLATFORM - Static variable in class com.example.uselocalrecipes.platform.Services
- PlayerRecipeTransferHandlerMixin - Class in com.example.uselocalrecipes.mixin.jei
-
The 2x2 player crafting grid variant of
BasicRecipeTransferHandlerMixin, also harmless without JEI. - PlayerRecipeTransferHandlerMixin() - Constructor for class com.example.uselocalrecipes.mixin.jei.PlayerRecipeTransferHandlerMixin
- preferServerTypes - Variable in class com.example.uselocalrecipes.config.UseLocalRecipesConfig
-
Whether the recipes the server sent win over locally read ones.
R
- RecipeMerger - Class in com.example.uselocalrecipes.recipe
-
Combines the recipes the server sent with the recipes that were read from local files.
- recipes() - Method in record class com.example.uselocalrecipes.recipe.LocalRecipeData
-
Returns the value of the
recipesrecord component. - RECIPES - Static variable in class com.example.uselocalrecipes.platform.Services
- RecipeSyncController - Class in com.example.uselocalrecipes.runtime
-
Waits for the recipes the server sends, reads recipes from local files in the meantime, then hands the merged result to the loader's client recipe synchronization.
- registerClientLifecycle() - Method in class com.example.uselocalrecipes.platform.NeoForgeRecipePlatform
- registerClientLifecycle() - Method in interface com.example.uselocalrecipes.platform.services.IRecipePlatform
-
Registers the loader specific client hooks, called once from the client entry point.
S
- Services - Class in com.example.uselocalrecipes.platform
- Services() - Constructor for class com.example.uselocalrecipes.platform.Services
- syncDelayTicks - Variable in class com.example.uselocalrecipes.config.UseLocalRecipesConfig
-
Ticks to wait after joining a world before falling back to locally read recipes.
T
- toString() - Method in record class com.example.uselocalrecipes.recipe.LocalRecipeData
-
Returns a string representation of this record class.
- transfer(AbstractContainerMenu, IRecipeSlotsView, Player, boolean, boolean, List<Slot>, List<Slot>, IStackHelper, IRecipeTransferHandlerHelper) - Static method in class com.example.uselocalrecipes.recipe.ClientRecipeTransfer
- typesOf(RecipeMap) - Static method in class com.example.uselocalrecipes.recipe.RecipeMerger
U
- UseLocalRecipesConfig - Class in com.example.uselocalrecipes.config
-
A small json config, implemented without any loader specific config api so both loaders share the file format.
- UseLocalRecipesConfig() - Constructor for class com.example.uselocalrecipes.config.UseLocalRecipesConfig
- UseLocalRecipesNeoForge - Class in com.example.uselocalrecipes
-
NeoForge client entry point.
- UseLocalRecipesNeoForge(IEventBus) - Constructor for class com.example.uselocalrecipes.UseLocalRecipesNeoForge
W
- warnAboutLocalRecipes - Variable in class com.example.uselocalrecipes.config.UseLocalRecipesConfig
-
Warns in chat when recipes had to be read from local files because the server did not send them.
All Classes and Interfaces|All Packages|Constant Field Values