mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 05:45:03 +00:00
Used interfaces in implementations instead of the real classes for most scripted classes.
This commit is contained in:
1 parent
6896cec417
commit
cf33b90b26
63 files changed
+466
-551
No files matched your search
@@ -7,9 +7,8 @@ package noppes.npcs.scripted.interfaces;
|
||||
|
||||
import net.minecraft.inventory.Container;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import noppes.npcs.scripted.interfaces.entity.IPlayer;
|
||||
import noppes.npcs.scripted.interfaces.item.IItemStack;
|
||||
import noppes.npcs.scripted.item.ScriptItemStack;
|
||||
import noppes.npcs.scripted.entity.ScriptPlayer;
|
||||
|
||||
public interface IContainer {
|
||||
int getSize();
|
||||
@@ -30,7 +29,7 @@ public interface IContainer {
|
||||
|
||||
void detectAndSendChanges();
|
||||
|
||||
void putStackInSlot(int slot, ScriptItemStack itemStack);
|
||||
void putStackInSlot(int slot, IItemStack itemStack);
|
||||
|
||||
boolean isPlayerNotUsingContainer(ScriptPlayer player);
|
||||
boolean isPlayerNotUsingContainer(IPlayer player);
|
||||
}
|
||||
Reference in new issue
Block a user