Used interfaces in implementations instead of the real classes for most scripted classes.

This commit is contained in:
Luis C.M committed 2022-05-11 22:08:31 -05:00
1 parent 6896cec417
commit cf33b90b26
63 files changed
+466 -551

No files matched your search

@@ -14,7 +14,6 @@ import net.minecraft.nbt.NBTTagList;
import noppes.npcs.controllers.ScriptController;
import noppes.npcs.controllers.data.PlayerDataScript;
import noppes.npcs.scripted.interfaces.gui.*;
import noppes.npcs.scripted.entity.ScriptPlayer;
import noppes.npcs.controllers.CustomGuiController;
import noppes.npcs.scripted.interfaces.entity.IPlayer;
import noppes.npcs.scripted.interfaces.item.IItemStack;
@@ -215,7 +214,7 @@ public class ScriptGui implements ICustomGui {
}
public void update(IPlayer player) {
CustomGuiController.updateGui((ScriptPlayer)player, this);
CustomGuiController.updateGui(player, this);
}
public boolean getShowPlayerInv() {