Search in sources :

Example 1 with EnergyContainerHelper

use of mekanism.common.capabilities.holder.energy.EnergyContainerHelper in project Mekanism by mekanism.

the class TileEntityElectricPump method getInitialEnergyContainers.

@Nonnull
@Override
protected IEnergyContainerHolder getInitialEnergyContainers() {
    EnergyContainerHelper builder = EnergyContainerHelper.forSide(this::getDirection);
    builder.addContainer(energyContainer = MachineEnergyContainer.input(this), RelativeSide.BACK);
    return builder.build();
}
Also used : EnergyContainerHelper(mekanism.common.capabilities.holder.energy.EnergyContainerHelper) Nonnull(javax.annotation.Nonnull)

Example 2 with EnergyContainerHelper

use of mekanism.common.capabilities.holder.energy.EnergyContainerHelper in project Mekanism by mekanism.

the class TileEntityChemicalOxidizer method getInitialEnergyContainers.

@Nonnull
@Override
protected IEnergyContainerHolder getInitialEnergyContainers() {
    EnergyContainerHelper builder = EnergyContainerHelper.forSideWithConfig(this::getDirection, this::getConfig);
    builder.addContainer(energyContainer = MachineEnergyContainer.input(this));
    return builder.build();
}
Also used : EnergyContainerHelper(mekanism.common.capabilities.holder.energy.EnergyContainerHelper) Nonnull(javax.annotation.Nonnull)

Example 3 with EnergyContainerHelper

use of mekanism.common.capabilities.holder.energy.EnergyContainerHelper in project Mekanism by mekanism.

the class TileEntityChemicalWasher method getInitialEnergyContainers.

@Nonnull
@Override
protected IEnergyContainerHolder getInitialEnergyContainers() {
    EnergyContainerHelper builder = EnergyContainerHelper.forSideWithConfig(this::getDirection, this::getConfig);
    builder.addContainer(energyContainer = MachineEnergyContainer.input(this));
    return builder.build();
}
Also used : EnergyContainerHelper(mekanism.common.capabilities.holder.energy.EnergyContainerHelper) Nonnull(javax.annotation.Nonnull)

Example 4 with EnergyContainerHelper

use of mekanism.common.capabilities.holder.energy.EnergyContainerHelper in project Mekanism by mekanism.

the class TileEntityCombiner method getInitialEnergyContainers.

@Nonnull
@Override
protected IEnergyContainerHolder getInitialEnergyContainers() {
    EnergyContainerHelper builder = EnergyContainerHelper.forSideWithConfig(this::getDirection, this::getConfig);
    builder.addContainer(energyContainer = MachineEnergyContainer.input(this));
    return builder.build();
}
Also used : EnergyContainerHelper(mekanism.common.capabilities.holder.energy.EnergyContainerHelper) Nonnull(javax.annotation.Nonnull)

Example 5 with EnergyContainerHelper

use of mekanism.common.capabilities.holder.energy.EnergyContainerHelper in project Mekanism by mekanism.

the class TileEntityChemicalCrystallizer method getInitialEnergyContainers.

@Nonnull
@Override
protected IEnergyContainerHolder getInitialEnergyContainers() {
    EnergyContainerHelper builder = EnergyContainerHelper.forSideWithConfig(this::getDirection, this::getConfig);
    builder.addContainer(energyContainer = MachineEnergyContainer.input(this));
    return builder.build();
}
Also used : EnergyContainerHelper(mekanism.common.capabilities.holder.energy.EnergyContainerHelper) Nonnull(javax.annotation.Nonnull)

Aggregations

Nonnull (javax.annotation.Nonnull)34 EnergyContainerHelper (mekanism.common.capabilities.holder.energy.EnergyContainerHelper)34