All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods
Modifier and Type |
Method and Description |
void |
addInformation(ItemStack stack,
World worldIn,
java.util.List<ITextComponent> tooltip,
ITooltipFlag flagIn) |
void |
addPropertyOverride(ResourceLocation key,
IItemPropertyGetter getter) |
Item |
asItem() |
boolean |
canHarvestBlock(IBlockState blockIn) |
boolean |
canPlayerBreakBlockWhileHolding(IBlockState state,
World worldIn,
BlockPos pos,
EntityPlayer player) |
void |
fillItemGroup(ItemGroup group,
NonNullList<ItemStack> items) |
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
getAttributeModifiers(EntityEquipmentSlot equipmentSlot)
Deprecated.
|
Item |
getContainerItem() |
ItemStack |
getDefaultInstance() |
protected java.lang.String |
getDefaultTranslationKey() |
float |
getDestroySpeed(ItemStack stack,
IBlockState state) |
ITextComponent |
getDisplayName(ItemStack stack) |
ItemGroup |
getGroup() |
int |
getHarvestLevel(ItemStack stack,
ToolType tool,
EntityPlayer player,
IBlockState blockState)
Queries the harvest level of this item stack for the specified tool class,
Returns -1 if this tool is not of the specified type
|
static int |
getIdFromItem(Item itemIn) |
boolean |
getIsRepairable(ItemStack toRepair,
ItemStack repair) |
static Item |
getItemById(int id) |
int |
getItemEnchantability() |
static Item |
getItemFromBlock(Block blockIn)
Deprecated.
|
int |
getMaxDamage()
Deprecated.
|
int |
getMaxStackSize()
Deprecated.
|
ITextComponent |
getName() |
IItemPropertyGetter |
getPropertyGetter(ResourceLocation key) |
EnumRarity |
getRarity(ItemStack stack) |
boolean |
getShareTag() |
TileEntityItemStackRenderer |
getTileEntityItemStackRenderer() |
java.util.Set<ToolType> |
getToolTypes(ItemStack stack) |
java.lang.String |
getTranslationKey() |
java.lang.String |
getTranslationKey(ItemStack stack) |
EnumAction |
getUseAction(ItemStack stack) |
int |
getUseDuration(ItemStack stack) |
boolean |
hasContainerItem()
Deprecated.
|
boolean |
hasCustomProperties() |
boolean |
hasEffect(ItemStack stack) |
boolean |
hitEntity(ItemStack stack,
EntityLivingBase target,
EntityLivingBase attacker) |
void |
inventoryTick(ItemStack stack,
World worldIn,
Entity entityIn,
int itemSlot,
boolean isSelected) |
boolean |
isComplex() |
boolean |
isDamageable() |
boolean |
isEnchantable(ItemStack stack) |
boolean |
isIn(Tag<Item> tagIn) |
protected boolean |
isInGroup(ItemGroup group) |
boolean |
isRepairable()
Called by CraftingManager to determine if an item is reparable.
|
boolean |
itemInteractionForEntity(ItemStack stack,
EntityPlayer playerIn,
EntityLivingBase target,
EnumHand hand) |
boolean |
onBlockDestroyed(ItemStack stack,
World worldIn,
IBlockState state,
BlockPos pos,
EntityLivingBase entityLiving) |
void |
onCreated(ItemStack stack,
World worldIn,
EntityPlayer playerIn) |
ActionResult<ItemStack> |
onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
EnumActionResult |
onItemUse(ItemUseContext p_195939_1_) |
ItemStack |
onItemUseFinish(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving) |
void |
onPlayerStoppedUsing(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving,
int timeLeft) |
protected RayTraceResult |
rayTrace(World worldIn,
EntityPlayer playerIn,
boolean useLiquids) |
protected static void |
register(Block blockIn,
Item itemIn) |
static void |
registerItems() |
boolean |
updateItemStackNBT(NBTTagCompound nbt) |