Package ml.pluto7073.chemicals.handlers
Class LinearChemicalHandler
java.lang.Object
ml.pluto7073.chemicals.handlers.ChemicalHandler
ml.pluto7073.chemicals.handlers.LinearChemicalHandler
A Chemical Handler that removes a fixed amount from a player per tick
-
Field Summary
Fields inherited from class ml.pluto7073.chemicals.handlers.ChemicalHandler
accessor, EMPTY, maxRecommendedAmount, ticksAccessor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoTick(net.minecraft.world.entity.player.Player player) Updates the current amount of the chemical in the specified playerMethods inherited from class ml.pluto7073.chemicals.handlers.ChemicalHandler
add, appendTooltip, bloom, contrast, createCustomChemicalCommandExtension, createInstance, createInstance, defineDataForPlayer, formatAmount, get, getEffectsForAmount, getId, getLanguageKey, getMaxRecommendedAmount, getStrength, getTicksInPlayer, init, loadExtraPlayerData, saveExtraPlayerData, set, tickPlayer
-
Constructor Details
-
LinearChemicalHandler
public LinearChemicalHandler(float removePerTick, float maxRecommendedAmount)
-
-
Method Details
-
doTick
public void doTick(net.minecraft.world.entity.player.Player player) Description copied from class:ChemicalHandlerUpdates the current amount of the chemical in the specified player- Specified by:
doTickin classChemicalHandler- Parameters:
player- The player to update
-