mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-27 20:12:58 +00:00
Support for Future DBC Addon
This commit is contained in:
1 parent
38cc396299
commit
a57bf10031
6 files changed
+106
-25
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package kamkeel.addon;
|
||||
|
||||
import kamkeel.addon.client.DBCClient;
|
||||
import kamkeel.addon.client.GeckoAddonClient;
|
||||
|
||||
public class AddonManager {
|
||||
@@ -17,5 +18,9 @@ public class AddonManager {
|
||||
// Gecko Addon Initialization
|
||||
new GeckoAddon();
|
||||
new GeckoAddonClient();
|
||||
|
||||
// DBC Addon
|
||||
new DBCAddon();
|
||||
new DBCClient();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package kamkeel.addon;
|
||||
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import noppes.npcs.entity.EntityNPCInterface;
|
||||
|
||||
public class DBCAddon {
|
||||
public static DBCAddon instance;
|
||||
public boolean supportEnabled = true;
|
||||
|
||||
/**
|
||||
* This class is a shell class to be changed via mixins
|
||||
* The Addon Mod will replace all blank functions within
|
||||
* this class to change the ongoing code.
|
||||
*/
|
||||
public DBCAddon(){
|
||||
instance = this;
|
||||
}
|
||||
|
||||
public void dbcCopyData(EntityLivingBase copied, EntityLivingBase entity){}
|
||||
|
||||
public boolean canDBCAttack(EntityNPCInterface npc, float attackStrength, Entity receiver){
|
||||
return false;
|
||||
}
|
||||
|
||||
public void doDBCDamage(EntityNPCInterface npc, float attackStrength, Entity receiver){}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package kamkeel.addon.client;
|
||||
|
||||
import net.minecraft.client.model.ModelBase;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import noppes.npcs.client.gui.mainmenu.GuiNpcStats;
|
||||
import noppes.npcs.client.gui.model.GuiCreationScreen;
|
||||
import noppes.npcs.client.gui.util.GuiNPCInterface2;
|
||||
import noppes.npcs.client.gui.util.GuiNpcButton;
|
||||
import noppes.npcs.client.model.ModelMPM;
|
||||
import noppes.npcs.entity.EntityNPCInterface;
|
||||
|
||||
public class DBCClient {
|
||||
public static DBCClient Instance;
|
||||
public boolean supportEnabled = true;
|
||||
|
||||
/**
|
||||
* This class is a shell class to be changed via mixins
|
||||
* The Addon Mod will replace all blank functions within
|
||||
* this class to change the ongoing code.
|
||||
* The fewer classes modified by mixins the safer.
|
||||
* These are for mixins affecting only client-side classes.
|
||||
*/
|
||||
public DBCClient(){
|
||||
Instance = this;
|
||||
}
|
||||
|
||||
// Stat Buttons
|
||||
public void showDBCStatButtons(GuiNpcStats stats, EntityLivingBase entity){}
|
||||
public void showDBCStatActionPerformed(GuiNpcStats stats, GuiNpcButton btn){}
|
||||
}
|
||||
Reference in new issue
Block a user