Package vazkii.botania.api
Interface BotaniaAPIClient
- All Known Implementing Classes:
BotaniaAPIClientImpl
public interface BotaniaAPIClient
Class for API calls that must be made clientside
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voiddrawComplexManaHUD(net.minecraft.client.gui.GuiGraphics gui, int color, int mana, int maxMana, String name, net.minecraft.world.item.ItemStack bindDisplay, boolean properlyBound) Performs the effects ofdrawSimpleManaHUD(net.minecraft.client.gui.GuiGraphics, int, int, int, java.lang.String), then rendersbindDisplay, and a checkmark or x-mark dependong on the value ofproperlyBound.default voiddrawSimpleManaHUD(net.minecraft.client.gui.GuiGraphics gui, int color, int mana, int maxMana, String name) Draw a mana bar on the screendefault Map<FloatingFlower.IslandType, net.minecraft.resources.ResourceLocation> static BotaniaAPIClientinstance()default voidregisterIslandTypeModel(FloatingFlower.IslandType islandType, net.minecraft.resources.ResourceLocation model) Registers your model for island type islandType here.
-
Field Details
-
INSTANCE
-
-
Method Details
-
instance
-
registerIslandTypeModel
default void registerIslandTypeModel(FloatingFlower.IslandType islandType, net.minecraft.resources.ResourceLocation model) Registers your model for island type islandType here. Call this during NeoForge's ModelRegistryEvent. (TODO: verify)- Parameters:
islandType- The islandtype to registermodel- The model, onlyResourceLocationallowed, noModelResourceLocationallowed.
-
getRegisteredIslandTypeModels
default Map<FloatingFlower.IslandType,net.minecraft.resources.ResourceLocation> getRegisteredIslandTypeModels()- Returns:
- An immutable and live view of the registered island type model map
-
drawSimpleManaHUD
default void drawSimpleManaHUD(net.minecraft.client.gui.GuiGraphics gui, int color, int mana, int maxMana, String name) Draw a mana bar on the screen -
drawComplexManaHUD
default void drawComplexManaHUD(net.minecraft.client.gui.GuiGraphics gui, int color, int mana, int maxMana, String name, net.minecraft.world.item.ItemStack bindDisplay, boolean properlyBound) Performs the effects ofdrawSimpleManaHUD(net.minecraft.client.gui.GuiGraphics, int, int, int, java.lang.String), then rendersbindDisplay, and a checkmark or x-mark dependong on the value ofproperlyBound.
-