Interface BotaniaAPIClient

All Known Implementing Classes:
BotaniaAPIClientImpl

public interface BotaniaAPIClient
Class for API calls that must be made clientside
  • Field Details

  • Method Details

    • instance

      static BotaniaAPIClient 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 register
      model - The model, only ResourceLocation allowed, no ModelResourceLocation allowed.
    • 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 of drawSimpleManaHUD(net.minecraft.client.gui.GuiGraphics, int, int, int, java.lang.String), then renders bindDisplay, and a checkmark or x-mark dependong on the value of properlyBound.