Added detectAndSendChanges, putStackInSlot(slot,itemStack), isPlayerNotUsingContainer(player) functions to ScriptContainer

This commit is contained in:
Luis C.M committed 2022-05-03 14:05:49 -05:00
1 parent 09f76d84c4
commit 80e3c075c7
2 files changed
+23

No files matched your search

@@ -5,8 +5,11 @@
package noppes.npcs.scripted.interfaces;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.IInventory;
import noppes.npcs.scripted.ScriptItemStack;
import noppes.npcs.scripted.entity.ScriptPlayer;
public interface IContainer {
int getSize();
@@ -24,4 +27,10 @@ public interface IContainer {
IItemStack[] getItems();
boolean isCustomGUI();
void detectAndSendChanges();
void putStackInSlot(int slot, ScriptItemStack itemStack);
boolean isPlayerNotUsingContainer(ScriptPlayer player);
}