Skip to content

Commit

Permalink
fixed refactor derp
Browse files Browse the repository at this point in the history
  • Loading branch information
Marty Plummer committed Oct 3, 2014
1 parent d2b29e9 commit 09e9812
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public GuiLaptop(InventoryPlayer inventory, TileEntityLaptop laptop) {
int i = short1 - 108;
int inventoryRows = inventory.getSizeInventory() / 9;
this.ySize = i + inventoryRows * 18;
this.texture = new ResourceLocation("com.teamfear.creepypastacraft:textures/gui/laptop.png");
this.texture = new ResourceLocation("creepypastacraft:textures/gui/laptop.png");
}

protected void drawGuiContainerForegroundLayer(int i, int j) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void renderLaptop(TileEntityLaptop laptop,
glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
glTranslatef((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F);
glScalef(1.0F, -1.0F, -1.0F);
bindTexture(new ResourceLocation("com.teamfear.creepypastacraft:textures/entity/laptop.png"));
bindTexture(new ResourceLocation("creepypastacraft:textures/entity/laptop.png"));
short short1;
switch (i) {
case 2:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public ContainerLaptop(InventoryPlayer inventory, TileEntityLaptop entityLaptop)
laptop = entityLaptop;
addSlotToContainer(new Slot(entityLaptop, INPUT, 56, 34));
addSlotToContainer(new SlotLaptop(inventory.player, entityLaptop, OUTPUT, 116, 35));
laptop.openInventory();
laptop.openChest();
int i;

for (i = 0; i < 3; ++i) {
Expand Down Expand Up @@ -121,6 +121,6 @@ public ItemStack transferStackInSlot(EntityPlayer player, int index) {

public void onContainerClosed(EntityPlayer player) {
super.onContainerClosed(player);
laptop.closeInventory();
laptop.closeChest();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,6 @@ public void getSubItems(Item item, CreativeTabs tabs, List list) {

@SideOnly(Side.CLIENT)
public void registerIcons(IIconRegister iconRegister) {
itemIcon = iconRegister.registerIcon("com.teamfear.creepypastacraft:archive");
itemIcon = iconRegister.registerIcon("creepypastacraft:archive");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public boolean getIsRepairable(ItemStack stack1, ItemStack stack2) {

@Override
public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) {
String textureLoc = "com.teamfear.creepypastacraft:textures/models/armor/baby_layer_";
String textureLoc = "creepypastacraft:textures/models/armor/baby_layer_";
switch (this.armorType) {
case 2:
return (textureLoc + "2.png");
Expand All @@ -34,19 +34,19 @@ public String getArmorTexture(ItemStack stack, Entity entity, int slot, String t
public void registerIcons(IIconRegister iconRegister) {
switch (textureID) {
case 0:
itemIcon = iconRegister.registerIcon("com.teamfear.creepypastacraft:bonnet");
itemIcon = iconRegister.registerIcon("creepypastacraft:bonnet");
break;
case 1:
itemIcon = iconRegister.registerIcon("com.teamfear.creepypastacraft:bib");
itemIcon = iconRegister.registerIcon("creepypastacraft:bib");
break;
case 2:
itemIcon = iconRegister.registerIcon("com.teamfear.creepypastacraft:diaper");
itemIcon = iconRegister.registerIcon("creepypastacraft:diaper");
break;
case 3:
itemIcon = iconRegister.registerIcon("com.teamfear.creepypastacraft:booties");
itemIcon = iconRegister.registerIcon("creepypastacraft:booties");
break;
default:
itemIcon = iconRegister.registerIcon("com.teamfear.creepypastacraft:horror");
itemIcon = iconRegister.registerIcon("creepypastacraft:horror");
break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ public ItemStack onItemUseFinish(ItemStack stack, World world, EntityPlayer play
public void registerIcons(IIconRegister iconRegister) {
switch (foodType) {
case 0:
itemIcon = iconRegister.registerIcon("com.teamfear.creepypastacraft:pasta");
itemIcon = iconRegister.registerIcon("creepypastacraft:pasta");
break;
default:
itemIcon = iconRegister.registerIcon("com.teamfear.creepypastacraft:horror");
itemIcon = iconRegister.registerIcon("creepypastacraft:horror");
break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ public boolean getIsRepairable(ItemStack itemToRepair,
public void registerIcons(IIconRegister iconRegister) {
switch (textureID) {
case 0:
itemIcon = iconRegister.registerIcon("com.teamfear.creepypastacraft:jeffKnife");
itemIcon = iconRegister.registerIcon("creepypastacraft:jeffKnife");
break;
case 1:
itemIcon = iconRegister.registerIcon("com.teamfear.creepypastacraft:hiltBlack");
itemIcon = iconRegister.registerIcon("creepypastacraft:hiltBlack");
break;
default:
itemIcon = iconRegister.registerIcon("com.teamfear.creepypastacraft:horror");
itemIcon = iconRegister.registerIcon("creepypastacraft:horror");
break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public ItemCPCRecord(String recordName) {

@Override
public void registerIcons(IIconRegister iconRegister) {
itemIcon = iconRegister.registerIcon("com.teamfear.creepypastacraft:record_" + name);
itemIcon = iconRegister.registerIcon("creepypastacraft:record_" + name);
}

@Override
Expand Down Expand Up @@ -76,6 +76,6 @@ public static ItemCPCRecord getRecord(String name) {

@Override
public ResourceLocation getRecordResource(String name) {
return new ResourceLocation("com.teamfear.creepypastacraft:" + name);
return new ResourceLocation("creepypastacraft:" + name);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public ItemCPCSmileJPG() {
}

public void registerIcons(IIconRegister iconRegister) {
itemIcon = iconRegister.registerIcon("com.teamfear.creepypastacraft:smile");
itemIcon = iconRegister.registerIcon("creepypastacraft:smile");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public ItemCPCStephano() {
setMaxStackSize(8);
setMaxDurability(0);
setCreativeTab(CPC.tabCPC);
setUnlocalizedName("com.teamfear.creepypastacraft.stephano");
setTextureName("com.teamfear.creepypastacraft:stephano");
setUnlocalizedName("creepypastacraft.stephano");
setTextureName("creepypastacraft:stephano");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class ItemCPCTab extends Item {
public ItemCPCTab() {
this.setMaxStackSize(1);
this.setMaxDurability(0);
this.setTextureName("com.teamfear.creepypastacraft:tabCPC");
this.setTextureName("creepypastacraft:tabCPC");
this.setUnlocalizedName("horror");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ public class TileLaptop extends BlockContainer {
public TileLaptop() {
super(Material.iron);
setCreativeTab(CPC.tabCPC);
setTextureName("com.teamfear.creepypastacraft:laptop");
setUnlocalizedName("com.teamfear.creepypastacraft:laptop");
setTextureName("creepypastacraft:laptop");
setUnlocalizedName("creepypastacraft:laptop");
}

public Item getBlockDropped(int par1, Random random, int par3) {
Expand Down

0 comments on commit 09e9812

Please sign in to comment.