Add a Creative Energy Cube that's always half-full so it can sink or provide arbitrary amounts of energy.
This commit is contained in:
parent
38b554266e
commit
1d52a4f5a0
3 changed files with 8 additions and 2 deletions
|
@ -19,7 +19,8 @@ public final class Tier
|
|||
BASIC("Basic"),
|
||||
ADVANCED("Advanced"),
|
||||
ELITE("Elite"),
|
||||
ULTIMATE("Ultimate");
|
||||
ULTIMATE("Ultimate"),
|
||||
CREATIVE("Creative");
|
||||
|
||||
public String getName()
|
||||
{
|
||||
|
@ -44,7 +45,8 @@ public final class Tier
|
|||
BASIC("Basic", EnumColor.BRIGHT_GREEN, 2000000, 800),
|
||||
ADVANCED("Advanced", EnumColor.DARK_RED, 8000000, 3200),
|
||||
ELITE("Elite", EnumColor.DARK_BLUE, 32000000, 12800),
|
||||
ULTIMATE("Ultimate", EnumColor.PURPLE, 128000000, 51200);
|
||||
ULTIMATE("Ultimate", EnumColor.PURPLE, 128000000, 51200),
|
||||
CREATIVE("Creative", EnumColor.BLACK, Integer.MAX_VALUE, Integer.MAX_VALUE/2D);
|
||||
|
||||
public double MAX_ELECTRICITY;
|
||||
public double OUTPUT;
|
||||
|
|
|
@ -245,6 +245,10 @@ public class TileEntityEnergyCube extends TileEntityElectricBlock implements IPe
|
|||
@Override
|
||||
public void setEnergy(double energy)
|
||||
{
|
||||
if(tier == EnergyCubeTier.CREATIVE)
|
||||
{
|
||||
energy = Integer.MAX_VALUE / 2D;
|
||||
}
|
||||
super.setEnergy(energy);
|
||||
|
||||
int newRedstoneLevel = getRedstoneLevel();
|
||||
|
|
BIN
src/main/resources/assets/mekanism/render/EnergyCubeCreative.png
Normal file
BIN
src/main/resources/assets/mekanism/render/EnergyCubeCreative.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
Loading…
Add table
Reference in a new issue