Hello, I've installed Optifine 1.6.2 U C4 and my own mod adding blocks model in game. Some of them are bigger then a vanilla block, so I made them rendered regardless of the position of the camera. Without Optifine model rendered stable with the Optifine when camera goes over block bounds model not rendered. I try to replaced game class (aui.class) to Optifine, but the game stoped. PLEASE tell me how to fix this !?
Hello, I've installed Optifine 1.6.2 U C4 and my own mod adding blocks model in game. Some of them are bigger then a vanilla block, so I made them rendered regardless of the position of the camera. Without Optifine model rendered stable with the Optifine when camera goes over block bounds model not rendered. I try to replaced game class (aui.class) to Optifine, but the game stoped. PLEASE tell me how to fix this !?
[The way to solve] In InventoryPlayer.java need to change an array mainInventory to [37] and in readFromNBT. Register in ContainerPlayer this.addSlotToContainer(newSlotBackpack(this, par1InventoryPlayer, par1InventoryPlayer.getSizeInventory()-id,id, x, y));
Hi All! I made my slot for ContainerPlayer.java, but when I put back an item that item appears in the slot for a helmet.
SlotBackpack
package net.minecraft.inventory;
import mods.AdventureCraft.src.BackpackItem;
import net.minecraft.item.ItemStack;
class SlotBackpack extends Slot
{
final ContainerPlayer inventory;
SlotBackpack(ContainerPlayer containerplayer, IInventory iinventory, int i, int j, int k, int l)
{
super(iinventory, i, j, k);
inventory = containerplayer;
}
public int getSlotStackLimit()
{
return 1;
}
public boolean isItemValid(ItemStack itemstack)
{
return itemstack.getItem() instanceof BackpackItem;
}
}
Add my slot in ContainerPlayer.java
for (i = 0; i < 1; ++i)
{
this.addSlotToContainer(new SlotBackpack(this, par1InventoryPlayer, par1InventoryPlayer.getSizeInventory() - 1, 60, 8 + 2 * 18, 100));
}
0
Dear karyonix, could you put the source code of 1.6.4 version?
0
0
0
Hello, I've installed Optifine 1.6.2 U C4 and my own mod adding blocks model in game. Some of them are bigger then a vanilla block, so I made them rendered regardless of the position of the camera. Without Optifine model rendered stable with the Optifine when camera goes over block bounds model not rendered. I try to replaced game class (aui.class) to Optifine, but the game stoped. PLEASE tell me how to fix this !?
With Optifine:
Without Optifine:
And... Sorry for my English.
0
Have any source of mod? Or which class i should modified?
0
With Optifine:
Without Optifine:
And... Sorry for my English.
1
0
SlotBackpack
Please, help me. And sorry for my bad English