Class CaffeineHandler

java.lang.Object
ml.pluto7073.chemicals.handlers.ChemicalHandler
ml.pluto7073.chemicals.handlers.HalfLifeChemicalHandler
ml.pluto7073.pdapi.addition.chemicals.CaffeineHandler

public class CaffeineHandler extends ml.pluto7073.chemicals.handlers.HalfLifeChemicalHandler
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final CaffeineHandler
     

    Fields inherited from class ml.pluto7073.chemicals.handlers.HalfLifeChemicalHandler

    perTickMultiplier

    Fields inherited from class ml.pluto7073.chemicals.handlers.ChemicalHandler

    accessor, EMPTY, maxRecommendedAmount, ticksAccessor
  • Constructor Summary

    Constructors
    Constructor
    Description
    CaffeineHandler(int halfLifeTicks, float maxRecommendedAmount)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    appendTooltip(List<net.minecraft.network.chat.Component> tooltip, float caffeine, net.minecraft.world.item.ItemStack stack)
     
    formatAmount(float amount)
     
    Collection<net.minecraft.world.effect.MobEffectInstance>
    getEffectsForAmount(float amount, net.minecraft.world.level.Level level)
     
    static void
     

    Methods inherited from class ml.pluto7073.chemicals.handlers.HalfLifeChemicalHandler

    doTick

    Methods inherited from class ml.pluto7073.chemicals.handlers.ChemicalHandler

    add, bloom, contrast, createCustomChemicalCommandExtension, createInstance, createInstance, defineDataForPlayer, get, getId, getLanguageKey, getMaxRecommendedAmount, getStrength, getTicksInPlayer, loadExtraPlayerData, saveExtraPlayerData, set, tickPlayer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • CaffeineHandler

      public CaffeineHandler(int halfLifeTicks, float maxRecommendedAmount)
  • Method Details

    • getEffectsForAmount

      public Collection<net.minecraft.world.effect.MobEffectInstance> getEffectsForAmount(float amount, net.minecraft.world.level.Level level)
      Specified by:
      getEffectsForAmount in class ml.pluto7073.chemicals.handlers.ChemicalHandler
    • appendTooltip

      public void appendTooltip(List<net.minecraft.network.chat.Component> tooltip, float caffeine, net.minecraft.world.item.ItemStack stack)
      Overrides:
      appendTooltip in class ml.pluto7073.chemicals.handlers.ChemicalHandler
    • init

      public static void init()
    • formatAmount

      public String formatAmount(float amount)
      Overrides:
      formatAmount in class ml.pluto7073.chemicals.handlers.ChemicalHandler