Interface BotaniaAPI

All Known Implementing Classes:
BotaniaAPIImpl

public interface BotaniaAPI
  • Field Details

    • MODID

      static final String MODID
      See Also:
    • GOG_MODID

      static final String GOG_MODID
      See Also:
    • LOGGER

      static final org.slf4j.Logger LOGGER
    • INSTANCE

      static final BotaniaAPI INSTANCE
    • DUMMY_ARMOR_MATERIAL

      static final net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> DUMMY_ARMOR_MATERIAL
    • DUMMY_ITEM_TIER

      static final net.minecraft.world.item.Tier DUMMY_ITEM_TIER
  • Method Details

    • instance

      static BotaniaAPI instance()
    • botaniaRL

      static net.minecraft.resources.ResourceLocation botaniaRL(String path)
    • botaniaModelRL

      static net.minecraft.client.resources.model.ModelResourceLocation botaniaModelRL(String path, String variant)
    • apiVersion

      default int apiVersion()
      Returns:
      A unique version number for this version of the API. When anything is added, this number will be incremented
    • getBrewRegistry

      @Nullable default @Nullable net.minecraft.core.Registry<Brew> getBrewRegistry()
      Get the registry for brews. This should only be called after the registry is registered. In Forge, that is after NewRegistryEvent. In Fabric, that is after Botania's common initializer is loaded. Note that this registry is neither saved nor synced, and thus its integer ID's should not be relied upon.
    • getPaintableBlocks

      default Map<net.minecraft.resources.ResourceLocation,Function<net.minecraft.world.item.DyeColor,net.minecraft.world.level.block.Block>> getPaintableBlocks()
    • registerPaintableBlock

      default void registerPaintableBlock(net.minecraft.world.level.block.Block block, Function<net.minecraft.world.item.DyeColor,net.minecraft.world.level.block.Block> transformer)
    • registerPaintableBlock

      default void registerPaintableBlock(net.minecraft.resources.ResourceLocation blockId, Function<net.minecraft.world.item.DyeColor,net.minecraft.world.level.block.Block> transformer)
      Make Botania aware of how to transform between different colors of a block, for use in the paint lens. This method can be safely called during parallel mod initialization
      Parameters:
      blockId - The block ID
      transformer - Function from color to a new block
    • getManasteelArmorMaterial

      default net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> getManasteelArmorMaterial()
    • getElementiumArmorMaterial

      default net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> getElementiumArmorMaterial()
    • getManaweaveArmorMaterial

      default net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> getManaweaveArmorMaterial()
    • getTerrasteelArmorMaterial

      default net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> getTerrasteelArmorMaterial()
    • getManasteelItemTier

      default net.minecraft.world.item.Tier getManasteelItemTier()
    • getElementiumItemTier

      default net.minecraft.world.item.Tier getElementiumItemTier()
    • getTerrasteelItemTier

      default net.minecraft.world.item.Tier getTerrasteelItemTier()
    • getManaNetworkInstance

      default ManaNetwork getManaNetworkInstance()
    • getAccessoriesInventory

      default net.minecraft.world.Container getAccessoriesInventory(net.minecraft.world.entity.player.Player player)
    • breakOnAllCursors

      default void breakOnAllCursors(net.minecraft.world.entity.player.Player player, net.minecraft.world.item.ItemStack stack, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side)
      Break all the blocks the given player has selected with the loki ring. The item passed must implement SequentialBreaker.
    • hasSolegnoliaAround

      default boolean hasSolegnoliaAround(net.minecraft.world.entity.Entity e)
    • sparkleFX

      default void sparkleFX(net.minecraft.world.level.Level world, double x, double y, double z, float r, float g, float b, float size, int m)
    • registerCorporeaNodeDetector

      default void registerCorporeaNodeDetector(CorporeaNodeDetector detector)
    • getConfigData

      default ConfigDataManager getConfigData()
    • setConfigData

      default void setConfigData(ConfigDataManager configDataManager)