cn.nukkit.inventory.FakeBlockMenu Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of powernukkit Show documentation
Show all versions of powernukkit Show documentation
A Minecraft Bedrock Edition server software implementation made in Java from scratch which supports all new features.
package cn.nukkit.inventory;
import cn.nukkit.level.Position;
/**
* @author MagicDroidX (Nukkit Project)
*/
public class FakeBlockMenu extends Position implements InventoryHolder {
private final Inventory inventory;
public FakeBlockMenu(Inventory inventory, Position pos) {
super(pos.x, pos.y, pos.z, pos.level);
this.inventory = inventory;
}
@Override
public Inventory getInventory() {
return inventory;
}
}