Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package destinyspork.sporksstuff.container;
- import [..]
- /**This is just _BedrockMiners_ code **/
- public class ContainerFeeder extends Container {
- private TileEntityFeeder te;
- public ContainerFeeder(IInventory playerInv, TileEntityFeeder te) {
- this.te = te;
- for (int y = 0; y < 3; ++y) {
- for (int x = 0; x < 3; ++x) {
- this.addSlotToContainer(new Slot(te, x + y * 3, 62 + x * 18, 17 + y * 18));
- }
- }
- for (int y = 0; y < 3; ++y) {
- for (int x = 0; x < 9; ++x) {
- this.addSlotToContainer(new Slot(playerInv, x + y * 9 + 9, 8 + x * 18, 84 + y * 18));
- }
- }
- for (int x = 0; x < 9; ++x) {
- this.addSlotToContainer(new Slot(playerInv, x, 8 + x * 18, 142));
- }
- }
- @Override
- public boolean canInteractWith(EntityPlayer playerIn) {
- return this.te.isUseableByPlayer(playerIn);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment