public interface IEtheriumProvider
Interface for etherium providers to implement.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    consume(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos consumerPos, int amount)
    Consumes etherium from this provider.
    int
     
    int
     
     
  • Method Details

    • consume

      int consume(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos consumerPos, int amount)
      Consumes etherium from this provider.
      Parameters:
      level - The level of this etherium provider.
      consumerPos - The position of the etherium consumer.
      amount - The etherium amount to consume.
      Returns:
      The etherium amount that was actually consumed.
    • getAmount

      int getAmount()
      Returns:
      The etherium amount stored in this etherium provider.
    • getType

      EtheriumType getType()
      Returns:
      The etherium type stored in this etherium provider.
    • getMax

      int getMax()
      Returns:
      The max etherium amount that can be stored in this etherium provider.