Class EnergyHelpers

java.lang.Object
org.cyclops.integrateddynamics.core.helper.EnergyHelpers

public class EnergyHelpers extends Object
Helpers related to energy.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
     
    static int
    fillNeigbours(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, int energy, boolean simulate)
    Attempty to fill the neighbouring tiles with energy.
    static net.minecraftforge.common.util.LazyOptional<net.minecraftforge.energy.IEnergyStorage>
    getEnergyStorage(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction facing)
     
    static net.minecraftforge.common.util.LazyOptional<net.minecraftforge.energy.IEnergyStorage>
    getEnergyStorage(org.cyclops.cyclopscore.datastructure.DimPos pos, net.minecraft.core.Direction facing)
     
    static net.minecraftforge.common.util.LazyOptional<net.minecraftforge.energy.IEnergyStorage>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EnergyHelpers

      public EnergyHelpers()
  • Method Details

    • addEnergyStorageProxy

      public static void addEnergyStorageProxy(EnergyHelpers.IEnergyStorageProxy energyStorageProxy)
    • getEnergyStorage

      public static net.minecraftforge.common.util.LazyOptional<net.minecraftforge.energy.IEnergyStorage> getEnergyStorage(PartPos pos)
    • getEnergyStorage

      public static net.minecraftforge.common.util.LazyOptional<net.minecraftforge.energy.IEnergyStorage> getEnergyStorage(org.cyclops.cyclopscore.datastructure.DimPos pos, net.minecraft.core.Direction facing)
    • getEnergyStorage

      public static net.minecraftforge.common.util.LazyOptional<net.minecraftforge.energy.IEnergyStorage> getEnergyStorage(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction facing)
    • fillNeigbours

      public static int fillNeigbours(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, int energy, boolean simulate)
      Attempty to fill the neighbouring tiles with energy.
      Parameters:
      world - The world.
      pos - The filler's position.
      energy - The energy to add.
      simulate - If the filling should be simulated.
      Returns:
      The amount of energy that was filled somewhere.