mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
23 lines
583 B
Java
23 lines
583 B
Java
package com.hbm.inventory.container;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.entity.player.InventoryPlayer;
|
|
import net.minecraft.inventory.IInventory;
|
|
|
|
public class ContainerCrateBase extends ContainerBase {
|
|
|
|
//just there so prev stuff doesnt break
|
|
protected IInventory crate = tile;
|
|
|
|
public ContainerCrateBase(InventoryPlayer invPlayer, IInventory tedf) {
|
|
super(invPlayer, tedf);
|
|
tile.openInventory();
|
|
}
|
|
|
|
@Override
|
|
public void onContainerClosed(EntityPlayer p_75134_1_) {
|
|
super.onContainerClosed(p_75134_1_);
|
|
tile.closeInventory();
|
|
}
|
|
}
|