1) I renamed the Lang file to en_us.lang, but it didn't change anything.
2) Changed some things, still doesn't work:
public class TileEntityBasicInventory extends TileEntityBase {
protected NonNullList<ItemStack> tileEntityContents;
protected StackHandler stackHandler;
public TileEntityBasicInventory(String name, short numberOfSlots) {
super(name, numberOfSlots);
tileEntityContents = NonNullList.<ItemStack>func_191197_a(numberOfSlots, ItemStack.field_190927_a);
stackHandler = new StackHandler(this, numberOfSlots);
}
@Override
public void readFromNBT(NBTTagCompound compound) {
super.readFromNBT(compound);
ItemStackHelper.func_191283_b(compound, this.tileEntityContents);
}
@Override
public NBTTagCompound writeToNBT(NBTTagCompound compound) {
super.writeToNBT(compound);
ItemStackHelper.func_191282_a(compound, this.tileEntityContents);
return compound;
}
@Override
public boolean hasCapability(Capability<?> capability, EnumFacing enumFacing) {
if (capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY)
return true;
return super.hasCapability(capability, enumFacing);
}
@Override
public <T> T getCapability(Capability<T> capability, EnumFacing enumFacing) {
if (capability == CapabilityItemHandler.ITEM_HANDLER_CAPABILITY)
return (T) stackHandler;
return super.getCapability(capability, enumFacing);
}
}
StackHandler class
public class StackHandler extends ItemStackHandler {
private final TileEntityBase tileEntityBase;
public StackHandler(TileEntityBase tileEntityBase, int size) {
super(size);
this.tileEntityBase = tileEntityBase;
}
@Override
protected void onContentsChanged(int slot) {
tileEntityBase.markDirty();
}
}
The Log - (from World Start to World Close)
MinecraftLog.txt
I didn't Push the changes to the GitHub access by the way.