Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- accessor - Variable in class ml.pluto7073.chemicals.handlers.ChemicalHandler
- add(Player, float) - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
-
Deprecated.
- addChemical(ChemicalHandler, float) - Method in interface ml.pluto7073.chemicals.internal.ChemicalHolderBuilder
- addChemical(ChemicalHandler, ConsumedInstance.AbsorptionType, float) - Method in interface ml.pluto7073.chemicals.internal.ChemicalConsumer
- addChemical(ConsumedInstance) - Method in interface ml.pluto7073.chemicals.internal.ChemicalConsumer
- addChemical(ConsumedInstance) - Method in class ml.pluto7073.chemicals.mixin.PlayerMixin
- addChemical(ConsumedInstance) - Method in class ml.pluto7073.chemicals.mixin.ServerPlayerMixin
- addChemical(ResourceLocation, float) - Method in interface ml.pluto7073.chemicals.internal.ChemicalHolderBuilder
- addChemical(ResourceLocation, float) - Method in class ml.pluto7073.chemicals.mixin.FoodPropertiesMixin.BuilderMixin
- appendTooltip(List<Component>, float, ItemStack) - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
-
Appends a tooltip to an item containing this chemical
B
- bloom(Vector4f, Player) - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
- BuilderMixin() - Constructor for class ml.pluto7073.chemicals.mixin.FoodPropertiesMixin.BuilderMixin
C
- CHEMICAL_HANDLER - Static variable in class ml.pluto7073.chemicals.Chemicals
- CHEMICAL_HANDLER_KEY - Static variable in class ml.pluto7073.chemicals.Chemicals
- ChemicalCommands - Class in ml.pluto7073.chemicals.commands
- ChemicalCommands() - Constructor for class ml.pluto7073.chemicals.commands.ChemicalCommands
- ChemicalConsumer - Interface in ml.pluto7073.chemicals.internal
- ChemicalContaining - Interface in ml.pluto7073.chemicals.item
-
An interface for items that can contain a variable amount of any chemical in a stack.
- ChemicalHandler - Class in ml.pluto7073.chemicals.handlers
-
The base class representing a Chemical
- ChemicalHandler(float) - Constructor for class ml.pluto7073.chemicals.handlers.ChemicalHandler
- ChemicalHolder - Interface in ml.pluto7073.chemicals.internal
- ChemicalHolderBuilder - Interface in ml.pluto7073.chemicals.internal
- Chemicals - Class in ml.pluto7073.chemicals
- Chemicals() - Constructor for class ml.pluto7073.chemicals.Chemicals
- clearChemicalInstances() - Method in interface ml.pluto7073.chemicals.internal.ChemicalConsumer
- clearChemicalInstances() - Method in class ml.pluto7073.chemicals.mixin.PlayerMixin
- clearChemicalInstances() - Method in class ml.pluto7073.chemicals.mixin.ServerPlayerMixin
- ConsumedInstance - Class in ml.pluto7073.chemicals.handlers
- ConsumedInstance.AbsorptionType - Enum Class in ml.pluto7073.chemicals.handlers
-
Represents the type of chemical absorption that should be used when adding a chemical to a player.
- contrast(Vector4f, Player) - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
- copy() - Method in class ml.pluto7073.chemicals.handlers.ConsumedInstance
- copyWithAmount(float) - Method in class ml.pluto7073.chemicals.handlers.ConsumedInstance
- createCustomChemicalCommandExtension() - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
-
Implement this method if you want custom syntax for this chemical's command using
/chemicals - createInstance(ConsumedInstance.AbsorptionType, float) - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
-
Creates a new
ConsumedInstanceusing this chemical handler. - createInstance(ConsumedInstance.AbsorptionType, ItemStack, Level) - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
-
Creates a new
ConsumedInstanceusing this chemical handler and the specified item as an instance ofChemicalContaining.
D
- defineDataForPlayer(SynchedEntityData) - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
- doTick(Player) - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
-
Updates the current amount of the chemical in the specified player
- doTick(Player) - Method in class ml.pluto7073.chemicals.handlers.HalfLifeChemicalHandler
- doTick(Player) - Method in class ml.pluto7073.chemicals.handlers.LinearChemicalHandler
- doTick(Player) - Method in class ml.pluto7073.chemicals.handlers.StaticChemicalHandler
- DRINK - Enum constant in enum class ml.pluto7073.chemicals.handlers.ConsumedInstance.AbsorptionType
E
- EAT - Enum constant in enum class ml.pluto7073.chemicals.handlers.ConsumedInstance.AbsorptionType
- EMPTY - Static variable in class ml.pluto7073.chemicals.handlers.ChemicalHandler
F
- FoodPropertiesMixin - Class in ml.pluto7073.chemicals.mixin
- FoodPropertiesMixin() - Constructor for class ml.pluto7073.chemicals.mixin.FoodPropertiesMixin
- FoodPropertiesMixin.BuilderMixin - Class in ml.pluto7073.chemicals.mixin
- formatAmount(float) - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
-
Appends the units that this amount is tracked in to the amount, e.g.
G
- GAS_INHALE - Enum constant in enum class ml.pluto7073.chemicals.handlers.ConsumedInstance.AbsorptionType
- get(Player) - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
-
Gets the current amount of the chemical in the player
- getAllChemicals() - Static method in class ml.pluto7073.chemicals.Chemicals
- getChemicalContent(ResourceLocation, ItemStack, Level) - Method in interface ml.pluto7073.chemicals.item.ChemicalContaining
-
Obtains the amount of a specific chemical stored in a stack
- getChemicals() - Method in interface ml.pluto7073.chemicals.internal.ChemicalHolder
- getChemicals() - Method in class ml.pluto7073.chemicals.mixin.FoodPropertiesMixin
- getConsumedChemicalContent(ResourceLocation, ItemStack, Level) - Method in interface ml.pluto7073.chemicals.item.ChemicalContaining
-
Gets the amount of a specific chemical to actually be consumed upon item use.
- getEffectsForAmount(float, Level) - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
-
Get a list of effects associated with an amount of this chemical
- getId() - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
- getItem() - Method in class ml.pluto7073.chemicals.mixin.ItemStackMixin
- getLanguageKey() - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
- getMaxRecommendedAmount() - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
- getSerializedName() - Method in enum class ml.pluto7073.chemicals.handlers.ConsumedInstance.AbsorptionType
- getStrength(Player) - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
- getTicksInPlayer(Player) - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
H
- HalfLifeChemicalHandler - Class in ml.pluto7073.chemicals.handlers
-
A Chemical handler that exponentially ticks down the amount in a player, using the specified half life.
- HalfLifeChemicalHandler(int, float) - Constructor for class ml.pluto7073.chemicals.handlers.HalfLifeChemicalHandler
I
- id(String) - Static method in class ml.pluto7073.chemicals.Chemicals
- init() - Static method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
- INSTANT - Enum constant in enum class ml.pluto7073.chemicals.handlers.ConsumedInstance.AbsorptionType
- ItemStackMixin - Class in ml.pluto7073.chemicals.mixin
- ItemStackMixin() - Constructor for class ml.pluto7073.chemicals.mixin.ItemStackMixin
L
- LinearChemicalHandler - Class in ml.pluto7073.chemicals.handlers
-
A Chemical Handler that removes a fixed amount from a player per tick
- LinearChemicalHandler(float, float) - Constructor for class ml.pluto7073.chemicals.handlers.LinearChemicalHandler
- load(CompoundTag) - Static method in class ml.pluto7073.chemicals.handlers.ConsumedInstance
- loadExtraPlayerData(Player, CompoundTag) - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
-
Load any extra data required for the Chemical Handler
- LOGGER - Static variable in class ml.pluto7073.chemicals.Chemicals
M
- matches(ConsumedInstance) - Method in class ml.pluto7073.chemicals.handlers.ConsumedInstance
-
Tests if another Consumed Instance can successfully be merged with this one, meaning is it the same chemical and type of consumption
- maxRecommendedAmount - Variable in class ml.pluto7073.chemicals.handlers.ChemicalHandler
- ml.pluto7073.chemicals - package ml.pluto7073.chemicals
- ml.pluto7073.chemicals.commands - package ml.pluto7073.chemicals.commands
- ml.pluto7073.chemicals.handlers - package ml.pluto7073.chemicals.handlers
- ml.pluto7073.chemicals.internal - package ml.pluto7073.chemicals.internal
- ml.pluto7073.chemicals.item - package ml.pluto7073.chemicals.item
- ml.pluto7073.chemicals.mixin - package ml.pluto7073.chemicals.mixin
- MOD_ID - Static variable in class ml.pluto7073.chemicals.Chemicals
O
- onInitialize() - Method in class ml.pluto7073.chemicals.Chemicals
- onMaxAmountReached(Player) - Method in class ml.pluto7073.chemicals.handlers.StaticChemicalHandler
P
- perTickMultiplier - Variable in class ml.pluto7073.chemicals.handlers.HalfLifeChemicalHandler
- PlayerMixin - Class in ml.pluto7073.chemicals.mixin
- PlayerMixin(EntityType<? extends LivingEntity>, Level) - Constructor for class ml.pluto7073.chemicals.mixin.PlayerMixin
R
- register() - Static method in class ml.pluto7073.chemicals.commands.ChemicalCommands
- remaining() - Method in class ml.pluto7073.chemicals.handlers.ConsumedInstance
S
- save() - Method in class ml.pluto7073.chemicals.handlers.ConsumedInstance
- saveExtraPlayerData(Player, CompoundTag) - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
-
Store any extra data required for the Chemical Handler
- ServerPlayerMixin - Class in ml.pluto7073.chemicals.mixin
- ServerPlayerMixin(Level, BlockPos, float, GameProfile) - Constructor for class ml.pluto7073.chemicals.mixin.ServerPlayerMixin
- set(Player, float) - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
-
Sets amount of chemical in a player
- setChemicals(Map<ResourceLocation, Float>) - Method in interface ml.pluto7073.chemicals.internal.ChemicalHolder
- setChemicals(Map<ResourceLocation, Float>) - Method in class ml.pluto7073.chemicals.mixin.FoodPropertiesMixin
- SOLID_INHALE - Enum constant in enum class ml.pluto7073.chemicals.handlers.ConsumedInstance.AbsorptionType
- StaticChemicalHandler - Class in ml.pluto7073.chemicals.handlers
-
An implementation of
ConsumableChemicalHandlerfor a chemical that stays in the player and resets once a maximum amount is reached, performing an action on the player - StaticChemicalHandler(float) - Constructor for class ml.pluto7073.chemicals.handlers.StaticChemicalHandler
-
Creates a new StaticChemicalHandler instance
T
- tickPlayer(Player) - Method in class ml.pluto7073.chemicals.handlers.ChemicalHandler
- ticksAccessor - Variable in class ml.pluto7073.chemicals.handlers.ChemicalHandler
U
- update(Player) - Method in class ml.pluto7073.chemicals.handlers.ConsumedInstance
V
- valueOf(String) - Static method in enum class ml.pluto7073.chemicals.handlers.ConsumedInstance.AbsorptionType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class ml.pluto7073.chemicals.handlers.ConsumedInstance.AbsorptionType
-
Returns an array containing the constants of this enum class, in the order they are declared.
All Classes and Interfaces|All Packages|Constant Field Values
ChemicalConsumer.addChemical(ChemicalHandler, AbsorptionType, float)orChemicalConsumer.addChemical(ConsumedInstance)to properly add chemicals to a player