Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eyecandycraft/main/entities/RenderFarTileEntity.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ public class RenderFarTileEntity extends TileEntity {
@SideOnly(Side.CLIENT)
@Override
public double func_82115_m() {
return 65536.0D;
return 1600.0D;
}
}
68 changes: 25 additions & 43 deletions eyecandycraft/main/solid/rendertables/RenderTableARLO.java
Original file line number Diff line number Diff line change
@@ -1,53 +1,35 @@
package eyecandycraft.main.solid.rendertables;

import eyecandycraft.main.utils.Game;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.tileentity.TileEntity;
import org.lwjgl.opengl.GL11;

import eyecandycraft.main.blocks.Blocks;
import eyecandycraft.main.blocks.custom.AntennaYagiVHFBlock;
import eyecandycraft.main.solid.models.ModelARLO;

public class RenderTableARLO extends TileEntitySpecialRenderer {
private ModelARLO ARLO;

public RenderTableARLO() {
ARLO = new ModelARLO();
}

public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float scale) {
int metadata = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord,
tileentity.zCoord);

int direction = 2;
if (tileentity.getWorldObj().getBlockId(tileentity.xCoord, tileentity.yCoord,
tileentity.zCoord) == Blocks.ARLO.blockID) {
direction = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord,
tileentity.zCoord) + 1;
if (direction == 1) {
direction = 3;
} else if (direction == 3) {
direction = 1;
} else if (direction == 2) {
direction = 4;
} else if (direction == 4) {
direction = 2;
}
}
GL11.glPushMatrix();

// GL11.glTranslated(x + 0.5D, y - 0.45D, z + 0.5D);
GL11.glTranslated(x + 0.5D, y + 1.5D, z + 0.5D);

GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);
GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);

GL11.glRotatef(direction * 90, 0.0F, 1.0F, 0.0F);

bindTextureByName("/eyecandycraft/textures/ARLO.png");
ARLO.render((Entity) null, 0.0F, -0.1F, 0.0F, 0.0F, 0.0F, 0.0625F);

GL11.glPopMatrix();
}
private final ModelARLO ARLO;

public RenderTableARLO() {
ARLO = new ModelARLO();
}

public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float scale) {
int direction = Game.getDirection(tileentity);

GL11.glPushMatrix();

// GL11.glTranslated(x + 0.5D, y - 0.45D, z + 0.5D);
GL11.glTranslated(x + 0.5D, y + 1.5D, z + 0.5D);

GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);
GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);

GL11.glRotatef(direction * 90, 0.0F, 1.0F, 0.0F);

bindTextureByName("/eyecandycraft/textures/ARLO.png");
ARLO.render(null, 0.0F, -0.1F, 0.0F, 0.0F, 0.0F, 0.0625F);

GL11.glPopMatrix();
}
}
70 changes: 28 additions & 42 deletions eyecandycraft/main/solid/rendertables/RenderTableAntenna4G.java
Original file line number Diff line number Diff line change
@@ -1,53 +1,39 @@
package eyecandycraft.main.solid.rendertables;

import eyecandycraft.main.utils.Game;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.tileentity.TileEntity;
import org.lwjgl.opengl.GL11;

import eyecandycraft.main.blocks.Blocks;
import eyecandycraft.main.blocks.custom.AntennaYagiVHFBlock;
import eyecandycraft.main.solid.models.ModelAntenna4G;

public class RenderTableAntenna4G extends TileEntitySpecialRenderer {
private ModelAntenna4G Antenna4G;

public RenderTableAntenna4G() {
Antenna4G = new ModelAntenna4G();
}

public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float scale) {
int metadata = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord,
tileentity.zCoord);

int direction = 2;
if (tileentity.getWorldObj().getBlockId(tileentity.xCoord, tileentity.yCoord,
tileentity.zCoord) == Blocks.Antenna4G.blockID) {
direction = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord,
tileentity.zCoord) + 1;
if (direction == 1) {
direction = 3;
} else if (direction == 3) {
direction = 1;
} else if (direction == 2) {
direction = 4;
} else if (direction == 4) {
direction = 2;
}
}
GL11.glPushMatrix();

// GL11.glTranslated(x + 0.5D, y - 0.45D, z + 0.5D);
GL11.glTranslated(x + 0.5D, y + 1.5D, z + 0.5D);

GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);
GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);

GL11.glRotatef(direction * 90, 0.0F, 1.0F, 0.0F);

bindTextureByName("/eyecandycraft/textures/Antenna4G.png");
Antenna4G.render((Entity) null, 0.0F, -0.1F, 0.0F, 0.0F, 0.0F, 0.0625F);

GL11.glPopMatrix();
}
private final ModelAntenna4G Antenna4G;

public RenderTableAntenna4G() {
Antenna4G = new ModelAntenna4G();
}

public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float scale) {
int direction = Game.getDirection(tileentity);
if (tileentity.getWorldObj().getBlockId(tileentity.xCoord, tileentity.yCoord,
tileentity.zCoord) == Blocks.Antenna4G.blockID) {
direction = Game.getDirection(tileentity);
}
GL11.glPushMatrix();

// GL11.glTranslated(x + 0.5D, y - 0.45D, z + 0.5D);
GL11.glTranslated(x + 0.5D, y + 1.5D, z + 0.5D);

GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);
GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);

GL11.glRotatef(direction * 90, 0.0F, 1.0F, 0.0F);

bindTextureByName("/eyecandycraft/textures/Antenna4G.png");
Antenna4G.render(null, 0.0F, -0.1F, 0.0F, 0.0F, 0.0F, 0.0625F);

GL11.glPopMatrix();
}
}
67 changes: 25 additions & 42 deletions eyecandycraft/main/solid/rendertables/RenderTableAntenna5G.java
Original file line number Diff line number Diff line change
@@ -1,53 +1,36 @@
package eyecandycraft.main.solid.rendertables;

import eyecandycraft.main.utils.Game;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.tileentity.TileEntity;
import org.lwjgl.opengl.GL11;

import eyecandycraft.main.blocks.Blocks;
import eyecandycraft.main.blocks.custom.AntennaYagiVHFBlock;
import eyecandycraft.main.solid.models.ModelAntenna5G;

public class RenderTableAntenna5G extends TileEntitySpecialRenderer {
private ModelAntenna5G Antenna5G;

public RenderTableAntenna5G() {
Antenna5G = new ModelAntenna5G();
}

public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float scale) {
int metadata = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord,
tileentity.zCoord);

int direction = 2;
if (tileentity.getWorldObj().getBlockId(tileentity.xCoord, tileentity.yCoord,
tileentity.zCoord) == Blocks.Antenna5G.blockID) {
direction = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord,
tileentity.zCoord) + 1;
if (direction == 1) {
direction = 3;
} else if (direction == 3) {
direction = 1;
} else if (direction == 2) {
direction = 4;
} else if (direction == 4) {
direction = 2;
}
}
GL11.glPushMatrix();

// GL11.glTranslated(x + 0.5D, y - 0.45D, z + 0.5D);
GL11.glTranslated(x + 0.5D, y + 1.5D, z + 0.5D);

GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);
GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);

GL11.glRotatef(direction * 90, 0.0F, 1.0F, 0.0F);

bindTextureByName("/eyecandycraft/textures/Antenna5G.png");
Antenna5G.render((Entity) null, 0.0F, -0.1F, 0.0F, 0.0F, 0.0F, 0.0625F);

GL11.glPopMatrix();
}
private final ModelAntenna5G Antenna5G;

public RenderTableAntenna5G() {
Antenna5G = new ModelAntenna5G();
}

public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float scale) {
int direction = Game.getDirection(tileentity);

GL11.glPushMatrix();

// GL11.glTranslated(x + 0.5D, y - 0.45D, z + 0.5D);
GL11.glTranslated(x + 0.5D, y + 1.5D, z + 0.5D);

GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);
GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);

GL11.glRotatef(direction * 90, 0.0F, 1.0F, 0.0F);

bindTextureByName("/eyecandycraft/textures/Antenna5G.png");
Antenna5G.render(null, 0.0F, -0.1F, 0.0F, 0.0F, 0.0F, 0.0625F);

GL11.glPopMatrix();
}
}
67 changes: 25 additions & 42 deletions eyecandycraft/main/solid/rendertables/RenderTableAntenna80GHz.java
Original file line number Diff line number Diff line change
@@ -1,53 +1,36 @@
package eyecandycraft.main.solid.rendertables;

import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.tileentity.TileEntity;
import org.lwjgl.opengl.GL11;

import eyecandycraft.main.blocks.Blocks;
import eyecandycraft.main.blocks.custom.AntennaYagiVHFBlock;
import eyecandycraft.main.solid.models.ModelAntenna80GHz;
import eyecandycraft.main.utils.Game;

public class RenderTableAntenna80GHz extends TileEntitySpecialRenderer {
private ModelAntenna80GHz Antenna80GHz;

public RenderTableAntenna80GHz() {
Antenna80GHz = new ModelAntenna80GHz();
}

public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float scale) {
int metadata = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord,
tileentity.zCoord);

int direction = 2;
if (tileentity.getWorldObj().getBlockId(tileentity.xCoord, tileentity.yCoord,
tileentity.zCoord) == Blocks.Antenna80GHz.blockID) {
direction = tileentity.getWorldObj().getBlockMetadata(tileentity.xCoord, tileentity.yCoord,
tileentity.zCoord) + 1;
if (direction == 1) {
direction = 3;
} else if (direction == 3) {
direction = 1;
} else if (direction == 2) {
direction = 4;
} else if (direction == 4) {
direction = 2;
}
}
GL11.glPushMatrix();

// GL11.glTranslated(x + 0.5D, y - 0.45D, z + 0.5D);
GL11.glTranslated(x + 0.5D, y + 1.5D, z + 0.5D);

GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);
GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);

GL11.glRotatef(direction * 90, 0.0F, 1.0F, 0.0F);

bindTextureByName("/eyecandycraft/textures/Antenna80GHz.png");
Antenna80GHz.render((Entity) null, 0.0F, -0.1F, 0.0F, 0.0F, 0.0F, 0.0625F);

GL11.glPopMatrix();
}
private final ModelAntenna80GHz Antenna80GHz;

public RenderTableAntenna80GHz() {
Antenna80GHz = new ModelAntenna80GHz();
}

public void renderTileEntityAt(TileEntity tileentity, double x, double y, double z, float scale) {
int direction = Game.getDirection(tileentity);

GL11.glPushMatrix();

// GL11.glTranslated(x + 0.5D, y - 0.45D, z + 0.5D);
GL11.glTranslated(x + 0.5D, y + 1.5D, z + 0.5D);

GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);
GL11.glRotatef(90.0F, 0.0F, 1.0F, 0.0F);

GL11.glRotatef(direction * 90, 0.0F, 1.0F, 0.0F);

bindTextureByName("/eyecandycraft/textures/Antenna80GHz.png");
Antenna80GHz.render(null, 0.0F, -0.1F, 0.0F, 0.0F, 0.0F, 0.0625F);

GL11.glPopMatrix();
}
}
25 changes: 12 additions & 13 deletions eyecandycraft/main/solid/rendertables/RenderTableAntennaESM.java
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
package eyecandycraft.main.solid.rendertables;

import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft.entity.Entity;
import net.minecraft.tileentity.TileEntity;
import org.lwjgl.opengl.GL11;

import eyecandycraft.main.solid.models.ModelAntennaESM;

public class RenderTableAntennaESM extends TileEntitySpecialRenderer {
private ModelAntennaESM AntennaESM;
private final ModelAntennaESM AntennaESM;

public RenderTableAntennaESM() {
AntennaESM = new ModelAntennaESM();
}
public RenderTableAntennaESM() {
AntennaESM = new ModelAntennaESM();
}

public void renderTileEntityAt(TileEntity var1, double x, double y, double z, float scale) {
GL11.glPushMatrix();
GL11.glTranslated(x + 0.5D, y + 1.5D, z + 0.5D);
GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);
bindTextureByName("/eyecandycraft/textures/AntennaESM.png");
AntennaESM.render((Entity) null, 0.0F, -0.1F, 0.0F, 0.0F, 0.0F, 0.0625F);
GL11.glPopMatrix();
}
public void renderTileEntityAt(TileEntity var1, double x, double y, double z, float scale) {
GL11.glPushMatrix();
GL11.glTranslated(x + 0.5D, y + 1.5D, z + 0.5D);
GL11.glRotatef(180.0F, 0.0F, 0.0F, 1.0F);
bindTextureByName("/eyecandycraft/textures/AntennaESM.png");
AntennaESM.render(null, 0.0F, -0.1F, 0.0F, 0.0F, 0.0F, 0.0625F);
GL11.glPopMatrix();
}
}
Loading