mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-23 21:49:53 +00:00
-Overlays for players and NPCs are now grouped in an "overlay handler" object, similar to how you retrieve timers.
-Fixed client NPC overlay updates.
This commit is contained in:
1 parent
6fa5d0d8de
commit
6220a8ce14
20 files changed
+203
-164
No files matched your search
@@ -8,6 +8,7 @@ package noppes.npcs.scripted.interfaces.entity;
|
||||
import net.minecraft.entity.EntityCreature;
|
||||
import noppes.npcs.scripted.ScriptFaction;
|
||||
import noppes.npcs.scripted.interfaces.ISkinOverlay;
|
||||
import noppes.npcs.scripted.interfaces.handler.IOverlayHandler;
|
||||
import noppes.npcs.scripted.interfaces.item.IItemStack;
|
||||
import noppes.npcs.scripted.interfaces.ITimers;
|
||||
import noppes.npcs.scripted.roles.*;
|
||||
@@ -747,9 +748,7 @@ public interface ICustomNpc<T extends EntityCreature> extends IEntityLiving<T> {
|
||||
|
||||
String getOverlayTexture();
|
||||
|
||||
void setSkinOverlay(int id, ISkinOverlay overlay);
|
||||
|
||||
void removeSkinOverlay(int id);
|
||||
IOverlayHandler getOverlays();
|
||||
|
||||
void setCollisionType(int type);
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import noppes.npcs.scripted.ScriptBlock;
|
||||
import noppes.npcs.scripted.entity.ScriptDBCPlayer;
|
||||
import noppes.npcs.scripted.interfaces.handler.IOverlayHandler;
|
||||
import noppes.npcs.scripted.interfaces.handler.data.IQuest;
|
||||
import noppes.npcs.scripted.interfaces.*;
|
||||
import noppes.npcs.scripted.interfaces.gui.ICustomGui;
|
||||
@@ -225,9 +226,7 @@ public interface IPlayer<T extends EntityPlayerMP> extends IEntityLivingBase<T>
|
||||
|
||||
void closeOverlay(int id);
|
||||
|
||||
void setSkinOverlay(int id, ISkinOverlay overlay);
|
||||
|
||||
void removeSkinOverlay(int id);
|
||||
IOverlayHandler getOverlays();
|
||||
|
||||
IQuest[] getFinishedQuests();
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package noppes.npcs.scripted.interfaces.handler;
|
||||
|
||||
import noppes.npcs.scripted.interfaces.ISkinOverlay;
|
||||
|
||||
public interface IOverlayHandler {
|
||||
|
||||
void add(int id, ISkinOverlay overlay);
|
||||
|
||||
ISkinOverlay get(int id);
|
||||
|
||||
boolean has(int id);
|
||||
|
||||
boolean remove(int id);
|
||||
|
||||
int size();
|
||||
|
||||
void clear();
|
||||
}
|
||||
Reference in new issue
Block a user