mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 07:36:01 +00:00
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:
1 parent
38b554266e
commit
1d52a4f5a0
3 files changed
+8
-2
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user