Class CaffeineHandler

java.lang.Object
ml.pluto7073.chemicals.handlers.ConsumableChemicalHandler
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.ConsumableChemicalHandler

    accessor, EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
    CaffeineHandler(int halfLifeTicks)
     
  • 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

    tickPlayer

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

    add, createCustomChemicalCommandExtension, defineDataForPlayer, get, getId, getLanguageKey, loadExtraPlayerData, saveExtraPlayerData, set

    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)
  • 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.ConsumableChemicalHandler
    • 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.ConsumableChemicalHandler
    • init

      public static void init()
    • formatAmount

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