Update some stuff. Skulls don't render in crystal chest as blocks because they're a TESR with no block render model.
This commit is contained in:
parent
cea769047a
commit
61b34db3b4
|
@ -18,12 +18,12 @@
|
||||||
<link>
|
<link>
|
||||||
<name>common/mcmod.info</name>
|
<name>common/mcmod.info</name>
|
||||||
<type>1</type>
|
<type>1</type>
|
||||||
<location>/home/cpw/projects/gitstores/ironchests/IronChests2/mcmod.info</location>
|
<location>/home/cpw/projects/ironchests/IronChests2/mcmod.info</location>
|
||||||
</link>
|
</link>
|
||||||
<link>
|
<link>
|
||||||
<name>common/version.properties</name>
|
<name>common/version.properties</name>
|
||||||
<type>1</type>
|
<type>1</type>
|
||||||
<location>/home/cpw/projects/gitstores/ironchests/IronChests2/version.properties</location>
|
<location>/home/cpw/projects/ironchests/IronChests2/version.properties</location>
|
||||||
</link>
|
</link>
|
||||||
</linkedResources>
|
</linkedResources>
|
||||||
</projectDescription>
|
</projectDescription>
|
||||||
|
|
|
@ -167,6 +167,7 @@ public class TileEntityIronChestRenderer extends TileEntitySpecialRenderer {
|
||||||
}
|
}
|
||||||
MappableItemStackWrapper mis = new MappableItemStackWrapper(item);
|
MappableItemStackWrapper mis = new MappableItemStackWrapper(item);
|
||||||
if (!IronChest.CACHE_RENDER || !renderList.containsKey(mis)) { // Added support for using only old system.
|
if (!IronChest.CACHE_RENDER || !renderList.containsKey(mis)) { // Added support for using only old system.
|
||||||
|
// TODO add support for the skull TESR
|
||||||
IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(item, IItemRenderer.ItemRenderType.ENTITY);
|
IItemRenderer customRenderer = MinecraftForgeClient.getItemRenderer(item, IItemRenderer.ItemRenderType.ENTITY);
|
||||||
if (customRenderer != null) {
|
if (customRenderer != null) {
|
||||||
customitem.item = item;
|
customitem.item = item;
|
||||||
|
@ -243,5 +244,6 @@ public class TileEntityIronChestRenderer extends TileEntitySpecialRenderer {
|
||||||
render((TileEntityIronChest) tileentity, x, y, z, partialTick);
|
render((TileEntityIronChest) tileentity, x, y, z, partialTick);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private ModelChest model;
|
private ModelChest model;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,11 +30,13 @@ public class ContainerIronChestBase extends Container {
|
||||||
layoutContainer(playerInventory, chestInventory, type, xSize, ySize);
|
layoutContainer(playerInventory, chestInventory, type, xSize, ySize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean canInteractWith(EntityPlayer player)
|
public boolean canInteractWith(EntityPlayer player)
|
||||||
{
|
{
|
||||||
return chest.isUseableByPlayer(player);
|
return chest.isUseableByPlayer(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public ItemStack func_82846_b(EntityPlayer p, int i)
|
public ItemStack func_82846_b(EntityPlayer p, int i)
|
||||||
{
|
{
|
||||||
ItemStack itemstack = null;
|
ItemStack itemstack = null;
|
||||||
|
@ -64,6 +66,7 @@ public class ContainerIronChestBase extends Container {
|
||||||
return itemstack;
|
return itemstack;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void onCraftGuiClosed(EntityPlayer entityplayer)
|
public void onCraftGuiClosed(EntityPlayer entityplayer)
|
||||||
{
|
{
|
||||||
super.onCraftGuiClosed(entityplayer);
|
super.onCraftGuiClosed(entityplayer);
|
||||||
|
@ -95,6 +98,7 @@ public class ContainerIronChestBase extends Container {
|
||||||
addSlotToContainer(new Slot(playerInventory, hotbarSlot, leftCol + hotbarSlot * 18, ySize - 24));
|
addSlotToContainer(new Slot(playerInventory, hotbarSlot, leftCol + hotbarSlot * 18, ySize - 24));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public EntityPlayer getPlayer() {
|
public EntityPlayer getPlayer() {
|
||||||
return player;
|
return player;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue