Test fix for server craft
This commit is contained in:
parent
6ce5bb3063
commit
54845b8777
2 changed files with 7 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
||||||
package techreborn.client.render;
|
package techreborn.client.render;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import net.minecraft.util.IIcon;
|
import net.minecraft.util.IIcon;
|
||||||
import net.minecraftforge.common.util.ForgeDirection;
|
import net.minecraftforge.common.util.ForgeDirection;
|
||||||
import techreborn.client.IconSupplier;
|
import techreborn.client.IconSupplier;
|
||||||
|
@ -11,6 +13,7 @@ import uk.co.qmunity.lib.client.render.RenderHelper;
|
||||||
|
|
||||||
|
|
||||||
public class RenderCablePart {
|
public class RenderCablePart {
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
public static boolean renderStatic(Vecs3d translation, RenderHelper renderer, int pass, CablePart part) {
|
public static boolean renderStatic(Vecs3d translation, RenderHelper renderer, int pass, CablePart part) {
|
||||||
renderer.renderBox(ModLib2QLib.convert(part.boundingBoxes[6]), getIconFromType(part.type));
|
renderer.renderBox(ModLib2QLib.convert(part.boundingBoxes[6]), getIconFromType(part.type));
|
||||||
if (part.connectedSides != null) {
|
if (part.connectedSides != null) {
|
||||||
|
@ -21,7 +24,7 @@ public class RenderCablePart {
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
public static IIcon getIconFromType(int cableType){
|
public static IIcon getIconFromType(int cableType){
|
||||||
IIcon p = null;
|
IIcon p = null;
|
||||||
switch(cableType) {
|
switch(cableType) {
|
||||||
|
|
|
@ -12,6 +12,8 @@ import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import cpw.mods.fml.relauncher.Side;
|
||||||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
|
@ -144,6 +146,7 @@ public class CablePart extends ModPart implements IEnergyConductor {
|
||||||
return "Cable." + getNameFromType(type);
|
return "Cable." + getNameFromType(type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SideOnly(Side.CLIENT)
|
||||||
@Override
|
@Override
|
||||||
public String getItemTextureName() {
|
public String getItemTextureName() {
|
||||||
return IC2Items.getItem(getTextureNameFromType(type)).getIconIndex().getIconName();
|
return IC2Items.getItem(getTextureNameFromType(type)).getIconIndex().getIconName();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue