mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-14 00:14:09 +00:00
58 lines
2.0 KiB
Java
58 lines
2.0 KiB
Java
package kamkeel.addon;
|
|
|
|
import io.netty.buffer.ByteBuf;
|
|
import net.minecraft.entity.Entity;
|
|
import net.minecraft.entity.EntityLivingBase;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.entity.player.EntityPlayerMP;
|
|
import net.minecraft.nbt.NBTTagCompound;
|
|
import noppes.npcs.controllers.data.PlayerData;
|
|
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){}
|
|
|
|
// AI / STATS
|
|
public boolean canDBCAttack(EntityNPCInterface npc, float attackStrength, Entity receiver){
|
|
return false;
|
|
}
|
|
public void doDBCDamage(EntityNPCInterface npc, float attackStrength, Entity receiver){}
|
|
public boolean isKO(EntityNPCInterface npc, EntityPlayer player){
|
|
return false;
|
|
}
|
|
|
|
// PlayerData NBT
|
|
public void writeToNBT(PlayerData playerData, NBTTagCompound nbtTagCompound){}
|
|
public void readFromNBT(PlayerData playerData, NBTTagCompound nbtTagCompound){}
|
|
|
|
// Client Sync
|
|
public void syncPlayer(EntityPlayerMP playerMP){}
|
|
public void clientSync(NBTTagCompound compound, boolean syncEnd){}
|
|
public void syncUpdate(NBTTagCompound compound, ByteBuf buffer){}
|
|
public void syncRemove(int id){}
|
|
|
|
|
|
// Packet Handling
|
|
public void formPacketGet(EntityPlayer player, ByteBuf buffer){}
|
|
public void formPacketGets(EntityPlayer player, ByteBuf buffer){}
|
|
public void formPacketRemove(EntityPlayer player, ByteBuf buffer){}
|
|
public void formPacketSave(EntityPlayer player, ByteBuf buffer){}
|
|
public void formPacketSet(EntityPlayer player, ByteBuf buffer){}
|
|
public void formPacketPlayers(EntityPlayer player){}
|
|
|
|
// DBC DATA
|
|
public void receiveDBCData(EntityPlayer player, ByteBuf buffer){}
|
|
}
|