Package vazkii.botania.client.impl
Class BotaniaAPIClientImpl
java.lang.Object
vazkii.botania.client.impl.BotaniaAPIClientImpl
- All Implemented Interfaces:
BotaniaAPIClient
-
Field Summary
Fields inherited from interface vazkii.botania.api.BotaniaAPIClient
INSTANCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddrawComplexManaHUD(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 ofBotaniaAPIClient.drawSimpleManaHUD(net.minecraft.client.gui.GuiGraphics, int, int, int, java.lang.String), then rendersbindDisplay, and a checkmark or x-mark dependong on the value ofproperlyBound.voiddrawSimpleManaHUD(net.minecraft.client.gui.GuiGraphics gui, int color, int mana, int maxMana, String name) Draw a mana bar on the screenMap<FloatingFlower.IslandType, net.minecraft.resources.ResourceLocation> voidregisterIslandTypeModel(FloatingFlower.IslandType islandType, net.minecraft.resources.ResourceLocation model) Registers your model for island type islandType here.
-
Constructor Details
-
BotaniaAPIClientImpl
public BotaniaAPIClientImpl()
-
-
Method Details
-
registerIslandTypeModel
public void registerIslandTypeModel(FloatingFlower.IslandType islandType, net.minecraft.resources.ResourceLocation model) Description copied from interface:BotaniaAPIClientRegisters your model for island type islandType here. Call this during NeoForge's ModelRegistryEvent. (TODO: verify)- Specified by:
registerIslandTypeModelin interfaceBotaniaAPIClient- Parameters:
islandType- The islandtype to registermodel- The model, onlyResourceLocationallowed, noModelResourceLocationallowed.
-
getRegisteredIslandTypeModels
public Map<FloatingFlower.IslandType,net.minecraft.resources.ResourceLocation> getRegisteredIslandTypeModels()- Specified by:
getRegisteredIslandTypeModelsin interfaceBotaniaAPIClient- Returns:
- An immutable and live view of the registered island type model map
-
drawSimpleManaHUD
public void drawSimpleManaHUD(net.minecraft.client.gui.GuiGraphics gui, int color, int mana, int maxMana, String name) Description copied from interface:BotaniaAPIClientDraw a mana bar on the screen- Specified by:
drawSimpleManaHUDin interfaceBotaniaAPIClient
-
drawComplexManaHUD
public void drawComplexManaHUD(net.minecraft.client.gui.GuiGraphics gui, int color, int mana, int maxMana, String name, net.minecraft.world.item.ItemStack bindDisplay, boolean properlyBound) Description copied from interface:BotaniaAPIClientPerforms the effects ofBotaniaAPIClient.drawSimpleManaHUD(net.minecraft.client.gui.GuiGraphics, int, int, int, java.lang.String), then rendersbindDisplay, and a checkmark or x-mark dependong on the value ofproperlyBound.- Specified by:
drawComplexManaHUDin interfaceBotaniaAPIClient
-