Class BookshelfContent
java.lang.Object
net.darkhax.bookshelf.common.impl.BookshelfContent
- All Implemented Interfaces:
ContentProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddefineCommandArguments(CommandArgumentAdapter registry) Registers new command argument types with the game.voiddefineCommands(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher, net.minecraft.commands.CommandBuildContext context, net.minecraft.commands.Commands.CommandSelection selection) Registers new commands with the game.voiddefineCriteriaTriggers(GameRegistryAdapter<net.minecraft.advancements.CriterionTrigger<?>> registry) Registers new criteria triggers with the game.voiddefineIngredientTypes(IngredientTypeAdapter registry) Registers new ingredient types with the game.voiddefineLoadConditions(GenericRegistryAdapter<com.mojang.serialization.MapCodec<? extends ILoadCondition>> registry) Registers a new bookshelf load condition for JSON resources.voiddefineLootDescriptions(LootDescriptionAdapter registry) Registers a new descriptor for loot entries.voiddefineLootEntryTypes(GameRegistryAdapter<com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer>> registry) Registers new loot entry types with the game.Gets the namespace that all content from the provider should be registered under.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentProvider
canLoad, defineAttributes, defineBlockEntities, defineBlockRenderers, defineBlocks, defineBrews, defineCreativeTabs, defineEnchantmentComponents, defineEntities, defineItemComponents, defineItems, defineLootPoolAdditions, defineMenuScreens, defineMenuType, defineMobEffects, definePackets, definePotions, definePotPatterns, defineRecipeSerializers, defineRecipeTypes, defineSounds
-
Constructor Details
-
BookshelfContent
public BookshelfContent()
-
-
Method Details
-
defineIngredientTypes
Description copied from interface:ContentProviderRegisters new ingredient types with the game.- Specified by:
defineIngredientTypesin interfaceContentProvider- Parameters:
registry- Adapts registry requests to the current mod loader.
-
defineCommands
public void defineCommands(com.mojang.brigadier.CommandDispatcher<net.minecraft.commands.CommandSourceStack> dispatcher, net.minecraft.commands.CommandBuildContext context, net.minecraft.commands.Commands.CommandSelection selection) Description copied from interface:ContentProviderRegisters new commands with the game. This may happen multiple times per game instance depending on user actions.- Specified by:
defineCommandsin interfaceContentProvider- Parameters:
dispatcher- The command dispatcher to populate with your new commands.context- Context used to build commands.selection- The type of commands that should be registered.
-
defineCommandArguments
Description copied from interface:ContentProviderRegisters new command argument types with the game.- Specified by:
defineCommandArgumentsin interfaceContentProvider- Parameters:
registry- Adapts registry requests to the current mod loader.
-
defineLoadConditions
public void defineLoadConditions(GenericRegistryAdapter<com.mojang.serialization.MapCodec<? extends ILoadCondition>> registry) Description copied from interface:ContentProviderRegisters a new bookshelf load condition for JSON resources.- Specified by:
defineLoadConditionsin interfaceContentProvider- Parameters:
registry- Accepts registry requests.
-
defineCriteriaTriggers
public void defineCriteriaTriggers(GameRegistryAdapter<net.minecraft.advancements.CriterionTrigger<?>> registry) Description copied from interface:ContentProviderRegisters new criteria triggers with the game.- Specified by:
defineCriteriaTriggersin interfaceContentProvider- Parameters:
registry- Adapts registry requests to the current mod loader.
-
defineLootEntryTypes
public void defineLootEntryTypes(GameRegistryAdapter<com.mojang.serialization.MapCodec<? extends net.minecraft.world.level.storage.loot.entries.LootPoolEntryContainer>> registry) Description copied from interface:ContentProviderRegisters new loot entry types with the game.- Specified by:
defineLootEntryTypesin interfaceContentProvider- Parameters:
registry- Adapts registry requests to the current mod loader.
-
defineLootDescriptions
Description copied from interface:ContentProviderRegisters a new descriptor for loot entries.- Specified by:
defineLootDescriptionsin interfaceContentProvider- Parameters:
registry- Accepts registry requests.
-
namespace
Description copied from interface:ContentProviderGets the namespace that all content from the provider should be registered under. This MUST be the same modid that is used by your NeoForge/Fabric mod.- Specified by:
namespacein interfaceContentProvider- Returns:
- The namespace to register content with.
-