Код: Выделить всё
`package com.soul.geonations.container;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.IInventory;
public class ContainerATM extends Container {
private final IInventory atmInventory;
public ContainerATM(InventoryPlayer playerInventory, IInventory atmInventory) {
this.atmInventory = atmInventory;
}
@Override
public boolean canInteractWith(EntityPlayer playerIn) {
return this.atmInventory.isUsableByPlayer(playerIn);
}
}
`
Подробнее здесь: https://stackoverflow.com/questions/797 ... of-lines-d