Package ml.pluto7073.chemicals.handlers
Class ConsumedInstance
java.lang.Object
ml.pluto7073.chemicals.handlers.ConsumedInstance
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRepresents the type of chemical absorption that should be used when adding a chemical to a player. -
Method Summary
Modifier and TypeMethodDescriptioncopy()copyWithAmount(float amount) static ConsumedInstanceload(net.minecraft.nbt.CompoundTag tag) booleanmatches(ConsumedInstance other) Tests if another Consumed Instance can successfully be merged with this one, meaning is it the same chemical and type of consumptionfloatnet.minecraft.nbt.CompoundTagsave()booleanupdate(net.minecraft.world.entity.player.Player player)
-
Method Details
-
matches
Tests if another Consumed Instance can successfully be merged with this one, meaning is it the same chemical and type of consumption- Parameters:
other- The other instance to compare- Returns:
- whether they can be merged or not
-
remaining
public float remaining() -
update
public boolean update(net.minecraft.world.entity.player.Player player) -
copy
-
copyWithAmount
-
save
public net.minecraft.nbt.CompoundTag save() -
load
-