mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
fixes
This commit is contained in:
parent
11125a50e0
commit
3453929d86
@ -65,7 +65,7 @@ public interface IEnergyConnector extends ILoadedTile {
|
||||
if(te instanceof IEnergyConductor) {
|
||||
IEnergyConductor con = (IEnergyConductor) te;
|
||||
|
||||
if(!con.canConnect(dir.getOpposite().getOpposite()))
|
||||
if(!con.canConnect(dir.getOpposite()))
|
||||
return;
|
||||
|
||||
if(con.getPowerNet() != null && !con.getPowerNet().isSubscribed(this))
|
||||
|
||||
@ -38,8 +38,8 @@ public class ItemRenderLunaticSniper implements IItemRenderer {
|
||||
static final String fullRound = "Full_Round_Bullet";
|
||||
|
||||
static final float scale1 = 0.2F;
|
||||
static final float scale2 = 0.15F;
|
||||
static final float scale3 = 0.3F;
|
||||
static final float scale2 = 0.1F;
|
||||
static final float scale3 = 0.15F;
|
||||
static final float scale4 = 0.7F;
|
||||
|
||||
@Override
|
||||
@ -61,11 +61,13 @@ public class ItemRenderLunaticSniper implements IItemRenderer {
|
||||
GL11.glPopMatrix();
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
GL11.glRotatef(-10F, 0F, 1F, 0F);
|
||||
GL11.glRotatef(-10F, 0F, 0F, 1F);
|
||||
GL11.glRotatef(90F, 1F, 0F, 0F);
|
||||
GL11.glRotatef(-58.5F, 0F, 1F, 0F);
|
||||
GL11.glRotatef(90F, 0F, 0F, 1F);
|
||||
GL11.glTranslatef(-0.5F, -0.15F, 0F);
|
||||
GL11.glTranslatef(-0.5F, 0F, 0F);
|
||||
GL11.glScalef(scale1, scale1, scale1);
|
||||
|
||||
/// Begin animations ///
|
||||
@ -100,10 +102,12 @@ public class ItemRenderLunaticSniper implements IItemRenderer {
|
||||
GL11.glPopMatrix();
|
||||
break;
|
||||
case EQUIPPED:// In hand from other's POV
|
||||
GL11.glRotatef(-5F, 0F, 1F, 0F);
|
||||
GL11.glRotatef(-5F, 0F, 0F, 1F);
|
||||
GL11.glRotatef(90F, 1F, 0F, 0F);
|
||||
GL11.glRotatef(-50F, 0F, 1F, 0F);
|
||||
GL11.glRotatef(90F, 0F, 0F, 1F);
|
||||
GL11.glTranslatef(0F, -0.25F, -0.76F);
|
||||
GL11.glTranslatef(-0.05F, -0.2F, -0.75F);
|
||||
GL11.glScalef(scale2 - scale2 * 2, scale2, scale2);
|
||||
GL11.glPushMatrix();
|
||||
// GL11.glTranslated(eject[0] / 2, 0, -5);
|
||||
@ -117,7 +121,7 @@ public class ItemRenderLunaticSniper implements IItemRenderer {
|
||||
GL11.glTranslatef(10F, 11.5F, 0F);
|
||||
GL11.glRotatef(-90F, 0.0F, 1.0F, 0.0F);
|
||||
GL11.glRotatef(-135F, 1.0F, 0.0F, 0.0F);
|
||||
GL11.glScalef(scale4, scale4, scale4);
|
||||
GL11.glScalef(-scale4, scale4, scale4);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
@ -1,12 +1,51 @@
|
||||
package com.hbm.tileentity.machine;
|
||||
|
||||
import com.hbm.inventory.fluid.Fluids;
|
||||
import com.hbm.inventory.fluid.tank.FluidTank;
|
||||
import com.hbm.tileentity.IGUIProvider;
|
||||
import com.hbm.tileentity.TileEntityMachineBase;
|
||||
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.client.gui.GuiScreen;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class TileEntityWatz extends TileEntity {
|
||||
public class TileEntityWatz extends TileEntityMachineBase implements IGUIProvider {
|
||||
|
||||
public FluidTank[] tanks;
|
||||
public int heat;
|
||||
public int flux;
|
||||
|
||||
/* lock types for item IO */
|
||||
public boolean isLocked = false;
|
||||
public ItemStack[] locks = new ItemStack[24];
|
||||
|
||||
public TileEntityWatz() {
|
||||
super(24);
|
||||
this.tanks = new FluidTank[3];
|
||||
this.tanks[0] = new FluidTank(Fluids.COOLANT, 64_000);
|
||||
this.tanks[1] = new FluidTank(Fluids.COOLANT_HOT, 64_000);
|
||||
this.tanks[2] = new FluidTank(Fluids.WATZ, 64_000);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return "container.watz";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateEntity() {
|
||||
|
||||
if(!worldObj.isRemote) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
AxisAlignedBB bb = null;
|
||||
|
||||
@Override
|
||||
@ -31,4 +70,15 @@ public class TileEntityWatz extends TileEntity {
|
||||
public double getMaxRenderDistanceSquared() {
|
||||
return 65536.0D;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Container provideContainer(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public GuiScreen provideGUI(int ID, EntityPlayer player, World world, int x, int y, int z) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.5 KiB |
Loading…
x
Reference in New Issue
Block a user