mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-25 14:34:36 +00:00
Working Mana Pool Minecarts!
This commit is contained in:
1 parent
6c479052aa
commit
b415f28c43
17 files changed
+194
-51
No files matched your search
@@ -43,6 +43,7 @@ public class RenderTilePool extends TileEntitySpecialRenderer {
|
||||
|
||||
public static int forceMeta = 0;
|
||||
public static boolean forceMana = false;
|
||||
public static int forceManaNumber = -1;
|
||||
|
||||
@Override
|
||||
public void renderTileEntityAt(TileEntity tileentity, double d0, double d1, double d2, float f) {
|
||||
@@ -69,7 +70,14 @@ public class RenderTilePool extends TileEntitySpecialRenderer {
|
||||
|
||||
Minecraft.getMinecraft().renderEngine.bindTexture(TextureMap.locationBlocksTexture);
|
||||
|
||||
float waterLevel = (float) pool.getCurrentMana() / (float) pool.manaCap * 0.4F;
|
||||
int mana = pool.getCurrentMana();
|
||||
if(forceManaNumber > -1)
|
||||
mana = forceManaNumber;
|
||||
int cap = pool.manaCap;
|
||||
if(cap == -1)
|
||||
cap = TilePool.MAX_MANA;
|
||||
|
||||
float waterLevel = (float) mana / (float) cap * 0.4F;
|
||||
if(forceMana)
|
||||
waterLevel = 0.4F;
|
||||
|
||||
@@ -125,6 +133,7 @@ public class RenderTilePool extends TileEntitySpecialRenderer {
|
||||
|
||||
forceMeta = 0;
|
||||
forceMana = false;
|
||||
forceManaNumber = -1;
|
||||
}
|
||||
|
||||
public void renderIcon(int par1, int par2, IIcon par3Icon, int par4, int par5, int brightness) {
|
||||
|
||||
Reference in new issue
Block a user