This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tinker.tconstruct.client.entityrender; | |
import net.minecraft.client.model.ModelBase; | |
import net.minecraft.client.model.ModelRenderer; | |
import net.minecraft.entity.Entity; | |
import tinker.tconstruct.client.tmt.ModelRendererTurbo; | |
public class SkylaModel extends ModelBase | |
{ | |
ModelRenderer Head; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Base Block */ | |
public abstract class InventoryBlock extends BlockContainer | |
{ | |
protected InventoryBlock(int id, Material material) | |
{ | |
super(id, material); | |
} | |
/* Logic backend */ | |
public TileEntity createNewTileEntity (World var1) { return null; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.minecraftforge.common; | |
import net.minecraft.client.model.ModelBiped; | |
/** | |
* This interface has to be implemented by an instance of ItemArmor. | |
* It allows for the application of a custom model file to the player skin | |
* when the armor is worn. | |
*/ | |
public interface IArmorModelProvider | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void renderStandardInvBlock(RenderBlocks renderblocks, Block block, int meta) | |
{ | |
Tessellator tessellator = Tessellator.instance; | |
GL11.glTranslatef(-0.5F, -0.5F, -0.5F); | |
tessellator.startDrawingQuads(); | |
tessellator.setNormal(0.0F, -1F, 0.0F); | |
renderblocks.renderBottomFace(block, 0.0D, 0.0D, 0.0D, block.getBlockTextureFromSideAndMetadata(0, meta)); | |
tessellator.draw(); | |
tessellator.startDrawingQuads(); | |
tessellator.setNormal(0.0F, 1.0F, 0.0F); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LavaTankLogic extends TileEntity | |
implements ILiquidTank | |
{ | |
public LiquidTank tank; | |
public int max; | |
public int pressure; | |
public LiquidStack liquid; | |
public LavaTankLogic() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Button | |
protected void actionPerformed (GuiButton button) | |
{ | |
if (button.id == 0) | |
{ | |
patternIndex++; | |
if (patternIndex > TContent.patternOutputs.length - 1) | |
patternIndex = 0; | |
} | |
else if (button.id == 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void readFromNBT (NBTTagCompound tags) | |
{ | |
super.readFromNBT(tags); | |
readCustomNBT(tags); | |
} | |
public void readNetworkNBT(NBTTagCompound tags) | |
{ | |
//Anything that needs synced in here | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Tags and information about the tool */ | |
@Override | |
@SideOnly(Side.CLIENT) | |
public void addInformation (ItemStack stack, EntityPlayer player, List list, boolean par4) | |
{ | |
if (!stack.hasTagCompound()) | |
return; | |
NBTTagCompound tags = stack.getTagCompound(); | |
if (tags.hasKey("charge")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Icon[] icons; | |
public abstract String[] getTextureNames(); | |
public void updateIcons(IconRegister iconRegister) | |
{ | |
String[] textureNames = getTextureNames(); | |
this.icons = new Icon[textureNames.length]; | |
for (int i = 0; i < this.icons.length; ++i) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CraftingItem extends Item | |
{ | |
public String[] textureNames; | |
public String[] unlocalizedNames; | |
public String folder; | |
public Icon[] icons; | |
public CraftingItem(int id, String[] names, String[] tex, String f) | |
{ | |
super(id); | |
this.setCreativeTab(TConstruct.materialTab); |
OlderNewer