Class BaseBotanyPotsPlugin
java.lang.Object
net.darkhax.botanypots.common.impl.BaseBotanyPotsPlugin
- All Implemented Interfaces:
BotanyPotsPlugin
-
Field Summary
Fields inherited from interface net.darkhax.botanypots.common.api.BotanyPotsPlugin
PLUGINS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidBinds a renderer to a display type.voidRegister new display types with Botany Pots.voidRegister new item drop provider types.voidRegisters new growth amount calculation types.voidregisterSoilGenerators(BiConsumer<net.minecraft.resources.ResourceLocation, SoilGenerator> register) Registers soil generators with Botany Pots.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.darkhax.botanypots.common.api.BotanyPotsPlugin
registerCropGenerators
-
Constructor Details
-
BaseBotanyPotsPlugin
public BaseBotanyPotsPlugin()
-
-
Method Details
-
registerSoilGenerators
public void registerSoilGenerators(BiConsumer<net.minecraft.resources.ResourceLocation, SoilGenerator> register) Description copied from interface:BotanyPotsPluginRegisters soil generators with Botany Pots. These are data generators that are accessed using the in-game command. These do NOT automatically create and register soils with the mod. Use datapack files for that.- Specified by:
registerSoilGeneratorsin interfaceBotanyPotsPlugin- Parameters:
register- A consumer that will register any accepted soil generator.
-
registerDisplayTypes
public void registerDisplayTypes()Description copied from interface:BotanyPotsPluginRegister new display types with Botany Pots. These are registered usingDisplayType.register(ResourceLocation, MapCodec, StreamCodec).- Specified by:
registerDisplayTypesin interfaceBotanyPotsPlugin
-
bindDisplayRenderers
public void bindDisplayRenderers()Description copied from interface:BotanyPotsPluginBinds a renderer to a display type. This method is only invoked on the client, and it is safe to use client side only code within this method. These are bound usingDisplayRenderer.bind(DisplayType, DisplayRenderer).- Specified by:
bindDisplayRenderersin interfaceBotanyPotsPlugin
-
registerDropProviders
public void registerDropProviders()Description copied from interface:BotanyPotsPluginRegister new item drop provider types. These are registered usingItemDropProviderType.register(ResourceLocation, MapCodec, StreamCodec).- Specified by:
registerDropProvidersin interfaceBotanyPotsPlugin
-
registerGrowthAmountTypes
public void registerGrowthAmountTypes()Description copied from interface:BotanyPotsPluginRegisters new growth amount calculation types. These are registered usingGrowthAmountType.register(ResourceLocation, MapCodec, StreamCodec).- Specified by:
registerGrowthAmountTypesin interfaceBotanyPotsPlugin
-