Package ml.pluto7073.chemicals.handlers
Class LinearChemicalHandler
java.lang.Object
ml.pluto7073.chemicals.handlers.ConsumableChemicalHandler
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.ConsumableChemicalHandler
accessor, EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtickPlayer(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.ConsumableChemicalHandler
add, appendTooltip, createCustomChemicalCommandExtension, defineDataForPlayer, formatAmount, get, getEffectsForAmount, getId, getLanguageKey, loadExtraPlayerData, saveExtraPlayerData, set
-
Constructor Details
-
LinearChemicalHandler
public LinearChemicalHandler(float removePerTick)
-
-
Method Details
-
tickPlayer
public void tickPlayer(net.minecraft.world.entity.player.Player player) Description copied from class:ConsumableChemicalHandlerUpdates the current amount of the chemical in the specified player- Specified by:
tickPlayerin classConsumableChemicalHandler- Parameters:
player- The player to update
-