Package vazkii.botania.api
Interface BotaniaAPI
- All Known Implementing Classes:
BotaniaAPIImpl
public interface BotaniaAPI
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> static final net.minecraft.world.item.Tierstatic final Stringstatic final BotaniaAPIstatic final org.slf4j.Loggerstatic final String -
Method Summary
Modifier and TypeMethodDescriptiondefault intstatic net.minecraft.client.resources.model.ModelResourceLocationbotaniaModelRL(String path, String variant) static net.minecraft.resources.ResourceLocationdefault voidbreakOnAllCursors(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.default net.minecraft.world.ContainergetAccessoriesInventory(net.minecraft.world.entity.player.Player player) default @UnknownNullability net.minecraft.core.Registry<Brew> Get the registry for brews.default @UnknownNullability ConfigDataManagerdefault net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> default net.minecraft.world.item.Tierdefault ManaNetworkdefault net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> default net.minecraft.world.item.Tierdefault net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> default Map<net.minecraft.resources.ResourceLocation, Function<net.minecraft.world.item.DyeColor, net.minecraft.world.level.block.Block>> default net.minecraft.core.Holder<net.minecraft.world.item.ArmorMaterial> default net.minecraft.world.item.Tierdefault booleanhasSolegnoliaAround(net.minecraft.world.entity.Entity e) static BotaniaAPIinstance()default voiddefault voidregisterPaintableBlock(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.default voidregisterPaintableBlock(net.minecraft.world.level.block.Block block, Function<net.minecraft.world.item.DyeColor, net.minecraft.world.level.block.Block> transformer) default voidsetConfigData(ConfigDataManager configDataManager) default voidsparkleFX(net.minecraft.world.level.Level world, double x, double y, double z, float r, float g, float b, float size, int m)
-
Field Details
-
MODID
- See Also:
-
GOG_MODID
- See Also:
-
LOGGER
static final org.slf4j.Logger LOGGER -
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
-
botaniaRL
-
botaniaModelRL
-
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
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
-
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 IDtransformer- 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
-
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 implementSequentialBreaker. -
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
-
getConfigData
-
setConfigData
-