mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 14:14:46 +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
@@ -1,12 +1,9 @@
|
||||
package noppes.npcs.scripted;
|
||||
|
||||
import noppes.npcs.NoppesUtilServer;
|
||||
import noppes.npcs.scripted.entity.ScriptEntity;
|
||||
import noppes.npcs.scripted.interfaces.IParticle;
|
||||
import noppes.npcs.scripted.interfaces.entity.IEntity;
|
||||
|
||||
/**
|
||||
* Created by luisc on 9/8/2021.
|
||||
*/
|
||||
public class ScriptParticle implements IParticle {
|
||||
private String directory;
|
||||
|
||||
@@ -52,7 +49,7 @@ public class ScriptParticle implements IParticle {
|
||||
this.directory = directory;
|
||||
}
|
||||
|
||||
public void spawnOnEntity(ScriptEntity entity){
|
||||
public void spawnOnEntity(IEntity entity){
|
||||
int entityID = entity.getMCEntity().getEntityId();
|
||||
NoppesUtilServer.spawnScriptedParticle(directory,
|
||||
HEXColor, HEXColor2, HEXColorRate, HEXColorStart,
|
||||
|
||||
Reference in new issue
Block a user