Class ConsumedInstance

java.lang.Object
ml.pluto7073.chemicals.handlers.ConsumedInstance

public class ConsumedInstance extends Object
  • Method Details

    • matches

      public boolean matches(ConsumedInstance other)
      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

      public ConsumedInstance copy()
    • copyWithAmount

      public ConsumedInstance copyWithAmount(float amount)
    • save

      public net.minecraft.nbt.CompoundTag save()
    • load

      public static ConsumedInstance load(net.minecraft.nbt.CompoundTag tag)