mirror of
https://github.com/GTNewHorizons/DummyCore.git
synced 2026-11-24 22:14:24 +00:00
Sorted things properly, some minor changes, MultiItem now allows you to set the color of the stack. Also, DummyData system was added for you to store your variables in it more easy.
36 lines
1.5 KiB
Java
36 lines
1.5 KiB
Java
package DummyCore.Utils;
|
|
|
|
import java.util.List;
|
|
|
|
import net.minecraft.entity.Entity;
|
|
import net.minecraft.entity.EntityLivingBase;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.EnumRarity;
|
|
import net.minecraft.item.ItemStack;
|
|
import net.minecraft.world.World;
|
|
|
|
/**
|
|
*
|
|
* @author Modbder
|
|
* @version From DummyCore 1.1
|
|
* Please remember to check your item's unlocalized name before any actions using MultiItem.getUnlocalisedNameByMetadata(meta), otherwise every multiitem will function the same!
|
|
*/
|
|
public interface IDummyMultiItem {
|
|
|
|
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10);
|
|
|
|
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer);
|
|
|
|
public boolean hitEntity(ItemStack par1ItemStack, EntityLivingBase par2EntityLivingBase, EntityLivingBase par3EntityLivingBase);
|
|
|
|
public boolean onBlockDestroyed(ItemStack par1ItemStack, World par2World, int par3, int par4, int par5, int par6, EntityLivingBase par7EntityLivingBase);
|
|
|
|
public void onUpdate(ItemStack par1ItemStack, World par2World, Entity par3Entity, int par4, boolean par5);
|
|
|
|
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4);
|
|
|
|
public int getColorFromItemStack(ItemStack par1ItemStack, int par2);
|
|
|
|
public EnumRarity getRarity(ItemStack par1ItemStack);
|
|
}
|