public class ContainerKeyring extends ContainerBetterStorage {
private final int protectedIndex;
public ContainerKeyring(EntityPlayer player, String title, int protectedIndex) {
super(player, new InventoryKeyring(player, title), 9, 1);
this.protectedIndex = protectedIndex;
// We need to do this here instead of the super constructor,
// because otherwise we wouldn't be able to set protectedIndex.
super.setupInventoryContainer();
super.setupInventoryPlayer();