mirror of
https://github.com/KAMKEEL/CustomNPC-Gecko-Addon.git
synced 2026-11-18 19:39:08 +00:00
Implemented the API methods for setting the model, texture, animation file and idle animation for both npcs and scripted blocks
This commit is contained in:
1 parent
870a4b4218
commit
1471ffddb0
2 files changed
+92
-1
No files matched your search
@@ -2,6 +2,7 @@ package com.goodbird.npcgecko.api;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import noppes.npcs.api.block.IBlockScripted;
|
||||
import noppes.npcs.api.entity.ICustomNpc;
|
||||
import noppes.npcs.api.entity.IPlayer;
|
||||
import noppes.npcs.entity.EntityNPCInterface;
|
||||
@@ -32,6 +33,17 @@ public abstract class AbstractGeckoAPI {
|
||||
|
||||
public abstract AnimationBuilder createAnimationBuilder();
|
||||
|
||||
public abstract void setModel(ICustomNpc<EntityNPCInterface> npc, String model);
|
||||
public abstract void setTexture(ICustomNpc<EntityNPCInterface> npc, String texture);
|
||||
public abstract void setAnimationFile(ICustomNpc<EntityNPCInterface> npc, String animation);
|
||||
public abstract void setIdleAnimation(ICustomNpc<EntityNPCInterface> npc, String animation);
|
||||
public abstract void syncAnimForPlayer(ICustomNpc<EntityNPCInterface> npc, AnimationBuilder builder, IPlayer<EntityPlayerMP> player);
|
||||
public abstract void syncAnimForAll(ICustomNpc<EntityNPCInterface> npc, AnimationBuilder builder);
|
||||
|
||||
public abstract void setModel(IBlockScripted scriptedBlock, String model);
|
||||
public abstract void setTexture(IBlockScripted scriptedBlock, String texture);
|
||||
public abstract void setAnimationFile(IBlockScripted scriptedBlock, String animation);
|
||||
public abstract void setIdleAnimation(IBlockScripted scriptedBlock, String animation);
|
||||
public abstract void syncAnimForPlayer(IBlockScripted scriptedBlock, AnimationBuilder builder, IPlayer<EntityPlayerMP> player);
|
||||
public abstract void syncAnimForAll(IBlockScripted scriptedBlock, AnimationBuilder builder);
|
||||
}
|
||||
Reference in new issue
Block a user