2020-05-07 15:48:46 +02:00
|
|
|
package de.ellpeck.prettypipes.pipe.containers;
|
2020-04-16 04:42:42 +02:00
|
|
|
|
|
|
|
import de.ellpeck.prettypipes.items.IModule;
|
2021-12-02 14:44:26 +01:00
|
|
|
import net.minecraft.core.BlockPos;
|
|
|
|
import net.minecraft.world.entity.player.Player;
|
|
|
|
import net.minecraft.world.inventory.MenuType;
|
2020-04-16 04:42:42 +02:00
|
|
|
import net.minecraftforge.items.SlotItemHandler;
|
|
|
|
|
|
|
|
import javax.annotation.Nullable;
|
|
|
|
|
|
|
|
public class MainPipeContainer extends AbstractPipeContainer<IModule> {
|
2021-12-02 14:44:26 +01:00
|
|
|
|
|
|
|
public MainPipeContainer(@Nullable MenuType<?> type, int id, Player player, BlockPos pos) {
|
2020-04-16 04:42:42 +02:00
|
|
|
super(type, id, player, pos, -1);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void addSlots() {
|
|
|
|
for (int i = 0; i < 3; i++)
|
|
|
|
this.addSlot(new SlotItemHandler(this.tile.modules, i, 62 + i * 18, 17 + 32));
|
|
|
|
}
|
|
|
|
}
|