public interface IEtheriumHelper
Interface for etherium related helper methods.
  • Method Details

    • hasEtheriumProvider

      boolean hasEtheriumProvider(net.minecraft.world.level.block.entity.BlockEntity blockEntity)
      Parameters:
      blockEntity - The block entity to check.
      Returns:
      Whether the given block entity has an etherium provider or not.
    • hasEtheriumConsumer

      boolean hasEtheriumConsumer(net.minecraft.world.level.block.entity.BlockEntity blockEntity)
      Parameters:
      blockEntity - The block entity to check.
      Returns:
      Whether the given block entity has an etherium consumer or not.
    • hasEtheriumProvider

      boolean hasEtheriumProvider(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
      Parameters:
      level - The level to use.
      pos - The position to use.
      Returns:
      Whether the block entity at the given position in the given level has an etherium provider or not.
    • hasEtheriumConsumer

      boolean hasEtheriumConsumer(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
      Parameters:
      level - The level to use.
      pos - The position to use.
      Returns:
      Whether the block entity at the given position in the given level has an etherium consumer or not.
    • getEtheriumProvider

      @Nullable @Nullable IEtheriumProvider getEtheriumProvider(net.minecraft.world.level.block.entity.BlockEntity blockEntity)
      Parameters:
      blockEntity - The block entity to use.
      Returns:
      The etherium provider of the given block entity.
    • getEtheriumConsumer

      @Nullable @Nullable IEtheriumConsumer getEtheriumConsumer(net.minecraft.world.level.block.entity.BlockEntity blockEntity)
      Parameters:
      blockEntity - The block entity to use.
      Returns:
      The etherium consumer of the given block entity.
    • getEtheriumProvider

      @Nullable @Nullable IEtheriumProvider getEtheriumProvider(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
      Parameters:
      level - The level to use.
      pos - The position to use.
      Returns:
      The etherium provider of the block entity at the given position in the given level.
    • getEtheriumConsumer

      @Nullable @Nullable IEtheriumConsumer getEtheriumConsumer(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos)
      Parameters:
      level - The level to use.
      pos - The position to use.
      Returns:
      The etherium consumer of the block entity at the given position in the given level.
    • getEtheriumType

      @Nullable @Nullable EtheriumType getEtheriumType(net.minecraft.world.item.ItemStack stack)
      Parameters:
      stack - The item stack to get the etherium type from.
      Returns:
      The etherium type of the given item stack, or null if it does not have an etherium type.
    • setEtheriumType

      void setEtheriumType(net.minecraft.world.item.ItemStack stack, EtheriumType type)
      Sets the etherium type of an item stack.
      Parameters:
      stack - The item stack to set the etherium type on.
      type - The etherium type to set.