Class BotaniaAPIImpl

java.lang.Object
vazkii.botania.common.impl.BotaniaAPIImpl
All Implemented Interfaces:
BotaniaAPI

public class BotaniaAPIImpl extends Object implements BotaniaAPI
  • Constructor Details

    • BotaniaAPIImpl

      public BotaniaAPIImpl()
  • Method Details

    • apiVersion

      public int apiVersion()
      Specified by:
      apiVersion in interface BotaniaAPI
      Returns:
      A unique version number for this version of the API. When anything is added, this number will be incremented
    • getBrewRegistry

      @Nullable public @Nullable net.minecraft.core.Registry<Brew> getBrewRegistry()
      Description copied from interface: BotaniaAPI
      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.
      Specified by:
      getBrewRegistry in interface BotaniaAPI
    • getManasteelArmorMaterial

      public net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> getManasteelArmorMaterial()
      Specified by:
      getManasteelArmorMaterial in interface BotaniaAPI
    • getElementiumArmorMaterial

      public net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> getElementiumArmorMaterial()
      Specified by:
      getElementiumArmorMaterial in interface BotaniaAPI
    • getManaweaveArmorMaterial

      public net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> getManaweaveArmorMaterial()
      Specified by:
      getManaweaveArmorMaterial in interface BotaniaAPI
    • getTerrasteelArmorMaterial

      public net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> getTerrasteelArmorMaterial()
      Specified by:
      getTerrasteelArmorMaterial in interface BotaniaAPI
    • getManasteelItemTier

      public net.minecraft.world.item.Tier getManasteelItemTier()
      Specified by:
      getManasteelItemTier in interface BotaniaAPI
    • getElementiumItemTier

      public net.minecraft.world.item.Tier getElementiumItemTier()
      Specified by:
      getElementiumItemTier in interface BotaniaAPI
    • getTerrasteelItemTier

      public net.minecraft.world.item.Tier getTerrasteelItemTier()
      Specified by:
      getTerrasteelItemTier in interface BotaniaAPI
    • getManaNetworkInstance

      public ManaNetwork getManaNetworkInstance()
      Specified by:
      getManaNetworkInstance in interface BotaniaAPI
    • getAccessoriesInventory

      public net.minecraft.world.Container getAccessoriesInventory(net.minecraft.world.entity.player.Player player)
      Specified by:
      getAccessoriesInventory in interface BotaniaAPI
    • breakOnAllCursors

      public 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)
      Description copied from interface: BotaniaAPI
      Break all the blocks the given player has selected with the loki ring. The item passed must implement SequentialBreaker.
      Specified by:
      breakOnAllCursors in interface BotaniaAPI
    • hasSolegnoliaAround

      public boolean hasSolegnoliaAround(net.minecraft.world.entity.Entity e)
      Specified by:
      hasSolegnoliaAround in interface BotaniaAPI
    • sparkleFX

      public void sparkleFX(net.minecraft.world.level.Level world, double x, double y, double z, float r, float g, float b, float size, int m)
      Specified by:
      sparkleFX in interface BotaniaAPI
    • getPaintableBlocks

      public Map<net.minecraft.resources.ResourceLocation,Function<net.minecraft.world.item.DyeColor,net.minecraft.world.level.block.Block>> getPaintableBlocks()
      Specified by:
      getPaintableBlocks in interface BotaniaAPI
    • registerPaintableBlock

      public void registerPaintableBlock(net.minecraft.resources.ResourceLocation block, Function<net.minecraft.world.item.DyeColor,net.minecraft.world.level.block.Block> transformer)
      Description copied from interface: BotaniaAPI
      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
      Specified by:
      registerPaintableBlock in interface BotaniaAPI
      Parameters:
      block - The block ID
      transformer - Function from color to a new block
    • registerCorporeaNodeDetector

      public void registerCorporeaNodeDetector(CorporeaNodeDetector detector)
      Specified by:
      registerCorporeaNodeDetector in interface BotaniaAPI
    • getConfigData

      public ConfigDataManager getConfigData()
      Specified by:
      getConfigData in interface BotaniaAPI
    • setConfigData

      public void setConfigData(ConfigDataManager configDataManager)
      Specified by:
      setConfigData in interface BotaniaAPI