mirror of
https://github.com/GTNewHorizons/StructureLib.git
synced 2026-11-11 15:57:39 +00:00
18 lines
429 B
Java
18 lines
429 B
Java
package com.gtnewhorizon.structurelib.gui;
|
|||
|
|
|
||
|
|
import net.minecraft.entity.player.EntityPlayer;
|
||
|
|
import net.minecraft.inventory.Container;
|
||
|
|
|
||
|
|
public class EmptyContainer extends Container {
|
||
|
|
|
||
|
|
private final EntityPlayer player;
|
||
|
|
|
||
|
|
public EmptyContainer(EntityPlayer player) {
|
||
|
|
this.player = player;
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public boolean canInteractWith(EntityPlayer player) {
|
||
|
|
return player == this.player;
|
||
|
|
}
|
||
|
|
}
|