Package vazkii.botania.common.impl
Class BotaniaAPIImpl
java.lang.Object
vazkii.botania.common.impl.BotaniaAPIImpl
- All Implemented Interfaces:
BotaniaAPI
-
Field Summary
Fields inherited from interface vazkii.botania.api.BotaniaAPI
DUMMY_ARMOR_MATERIAL, DUMMY_ITEM_TIER, GOG_MODID, INSTANCE, LOGGER, MODID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidbreakOnAllCursors(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.net.minecraft.world.ContainergetAccessoriesInventory(net.minecraft.world.entity.player.Player player) @Nullable net.minecraft.core.Registry<Brew> Get the registry for brews.net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> net.minecraft.world.item.Tiernet.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> net.minecraft.world.item.Tiernet.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> Map<net.minecraft.resources.ResourceLocation, Function<net.minecraft.world.item.DyeColor, net.minecraft.world.level.block.Block>> net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> net.minecraft.world.item.TierbooleanhasSolegnoliaAround(net.minecraft.world.entity.Entity e) voidvoidregisterPaintableBlock(net.minecraft.resources.ResourceLocation block, 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.voidsetConfigData(ConfigDataManager configDataManager) voidsparkleFX(net.minecraft.world.level.Level world, double x, double y, double z, float r, float g, float b, float size, int m) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface vazkii.botania.api.BotaniaAPI
registerPaintableBlock
-
Constructor Details
-
BotaniaAPIImpl
public BotaniaAPIImpl()
-
-
Method Details
-
apiVersion
public int apiVersion()- Specified by:
apiVersionin interfaceBotaniaAPI- Returns:
- A unique version number for this version of the API. When anything is added, this number will be incremented
-
getBrewRegistry
Description copied from interface:BotaniaAPIGet 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:
getBrewRegistryin interfaceBotaniaAPI
-
getManasteelArmorMaterial
public net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> getManasteelArmorMaterial()- Specified by:
getManasteelArmorMaterialin interfaceBotaniaAPI
-
getElementiumArmorMaterial
public net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> getElementiumArmorMaterial()- Specified by:
getElementiumArmorMaterialin interfaceBotaniaAPI
-
getManaweaveArmorMaterial
public net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> getManaweaveArmorMaterial()- Specified by:
getManaweaveArmorMaterialin interfaceBotaniaAPI
-
getTerrasteelArmorMaterial
public net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> getTerrasteelArmorMaterial()- Specified by:
getTerrasteelArmorMaterialin interfaceBotaniaAPI
-
getManasteelItemTier
public net.minecraft.world.item.Tier getManasteelItemTier()- Specified by:
getManasteelItemTierin interfaceBotaniaAPI
-
getElementiumItemTier
public net.minecraft.world.item.Tier getElementiumItemTier()- Specified by:
getElementiumItemTierin interfaceBotaniaAPI
-
getTerrasteelItemTier
public net.minecraft.world.item.Tier getTerrasteelItemTier()- Specified by:
getTerrasteelItemTierin interfaceBotaniaAPI
-
getManaNetworkInstance
- Specified by:
getManaNetworkInstancein interfaceBotaniaAPI
-
getAccessoriesInventory
public net.minecraft.world.Container getAccessoriesInventory(net.minecraft.world.entity.player.Player player) - Specified by:
getAccessoriesInventoryin interfaceBotaniaAPI
-
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:BotaniaAPIBreak all the blocks the given player has selected with the loki ring. The item passed must implementSequentialBreaker.- Specified by:
breakOnAllCursorsin interfaceBotaniaAPI
-
hasSolegnoliaAround
public boolean hasSolegnoliaAround(net.minecraft.world.entity.Entity e) - Specified by:
hasSolegnoliaAroundin interfaceBotaniaAPI
-
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:
sparkleFXin interfaceBotaniaAPI
-
getPaintableBlocks
public Map<net.minecraft.resources.ResourceLocation,Function<net.minecraft.world.item.DyeColor, getPaintableBlocks()net.minecraft.world.level.block.Block>> - Specified by:
getPaintableBlocksin interfaceBotaniaAPI
-
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:BotaniaAPIMake 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:
registerPaintableBlockin interfaceBotaniaAPI- Parameters:
block- The block IDtransformer- Function from color to a new block
-
registerCorporeaNodeDetector
- Specified by:
registerCorporeaNodeDetectorin interfaceBotaniaAPI
-
getConfigData
- Specified by:
getConfigDatain interfaceBotaniaAPI
-
setConfigData
- Specified by:
setConfigDatain interfaceBotaniaAPI
-