fancy colorful fusion blanket textures, that's about it, really

This commit is contained in:
Bob 2020-08-25 23:23:42 +02:00
parent b71f754387
commit e090483fe2
9 changed files with 5349 additions and 5226 deletions

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 549 B

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@ -282,6 +282,9 @@ public class ResourceManager {
public static final ResourceLocation iter_solenoid = new ResourceLocation(RefStrings.MODID, "textures/models/iter/solenoid.png");
public static final ResourceLocation iter_toroidal = new ResourceLocation(RefStrings.MODID, "textures/models/iter/toroidal.png");
public static final ResourceLocation iter_torus = new ResourceLocation(RefStrings.MODID, "textures/models/iter/torus.png");
public static final ResourceLocation iter_torus_tungsten = new ResourceLocation(RefStrings.MODID, "textures/models/iter/torus_tungsten.png");
public static final ResourceLocation iter_torus_desh = new ResourceLocation(RefStrings.MODID, "textures/models/iter/torus_desh.png");
public static final ResourceLocation iter_torus_chlorophyte = new ResourceLocation(RefStrings.MODID, "textures/models/iter/torus_chlorophyte.png");
//FENSU
public static final ResourceLocation fensu_tex = new ResourceLocation(RefStrings.MODID, "textures/models/machines/fensu.png");

View File

@ -31,7 +31,14 @@ public class RenderITER extends TileEntitySpecialRenderer {
ResourceManager.iter.renderPart("Rails");
bindTexture(ResourceManager.iter_toroidal);
ResourceManager.iter.renderPart("Toroidal");
bindTexture(ResourceManager.iter_torus);
switch(iter.blanket) {
case 0: bindTexture(ResourceManager.iter_torus); break;
case 1: bindTexture(ResourceManager.iter_torus_tungsten); break;
case 2: bindTexture(ResourceManager.iter_torus_desh); break;
case 3: bindTexture(ResourceManager.iter_torus_chlorophyte); break;
default: bindTexture(ResourceManager.iter_torus); break;
}
ResourceManager.iter.renderPart("Torus");
GL11.glPushMatrix();
@ -58,10 +65,14 @@ public class RenderITER extends TileEntitySpecialRenderer {
int b = (int)((color & 0xFF) / 2 * alpha);
GL11.glColor3b((byte) r, (byte) g, (byte) b);
GL11.glTranslatef(0, 2.5F, 0);
GL11.glScaled(1, alpha, 1);
GL11.glTranslatef(0, -2.5F, 0);
bindTexture(ResourceManager.iter_plasma);
ResourceManager.iter.renderPart("Plasma");
GL11.glEnable(GL11.GL_LIGHTING);
GL11.glEnable(GL11.GL_ALPHA_TEST);
GL11.glDisable(GL11.GL_BLEND);

View File

@ -9,6 +9,7 @@ import com.hbm.interfaces.IConsumer;
import com.hbm.interfaces.IFluidAcceptor;
import com.hbm.interfaces.IFluidSource;
import com.hbm.inventory.FluidTank;
import com.hbm.items.ModItems;
import com.hbm.items.special.ItemFusionShield;
import com.hbm.lib.Library;
import com.hbm.tileentity.TileEntityMachineBase;
@ -29,6 +30,9 @@ public class TileEntityITER extends TileEntityMachineBase implements IConsumer,
public FluidTank[] tanks;
public FluidTank plasma;
@SideOnly(Side.CLIENT)
public int blanket;
public float rotor;
public float lastRotor;
public boolean isOn;
@ -81,15 +85,16 @@ public class TileEntityITER extends TileEntityMachineBase implements IConsumer,
for(int i = 0; i < 20; i++) {
if(tanks[0].getFill() >= 10 && plasma.getFill() > 0) {
if(tanks[0].getFill() >= 10) {
tanks[0].setFill(tanks[0].getFill() - 10);
tanks[1].setFill(tanks[1].getFill() + 1);
if(tanks[1].getFill() > tanks[1].getMaxFill())
tanks[1].setFill(tanks[1].getMaxFill());
plasma.setFill(plasma.getFill() - 1);
}
if(plasma.getFill() > 0)
plasma.setFill(plasma.getFill() - 1);
}
}
@ -104,6 +109,17 @@ public class TileEntityITER extends TileEntityMachineBase implements IConsumer,
NBTTagCompound data = new NBTTagCompound();
data.setBoolean("isOn", isOn);
data.setLong("power", power);
if(slots[3] == null) {
data.setInteger("blanket", 0);
} else if(slots[3].getItem() == ModItems.fusion_shield_tungsten) {
data.setInteger("blanket", 1);
} else if(slots[3].getItem() == ModItems.fusion_shield_desh) {
data.setInteger("blanket", 2);
} else if(slots[3].getItem() == ModItems.fusion_shield_chlorophyte) {
data.setInteger("blanket", 3);
}
this.networkPack(data, 250);
} else {
@ -125,6 +141,7 @@ public class TileEntityITER extends TileEntityMachineBase implements IConsumer,
public void networkUnpack(NBTTagCompound data) {
this.isOn = data.getBoolean("isOn");
this.power = data.getLong("power");
this.blanket = data.getInteger("blanket");
}
@Override