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(BlockState blockIn) |
boolean |
canPlayerBreakBlockWhileHolding(BlockState state,
World worldIn,
BlockPos pos,
PlayerEntity player) |
void |
fillItemGroup(ItemGroup group,
NonNullList<ItemStack> items) |
void |
func_219972_a(World worldIn,
LivingEntity livingEntityIn,
ItemStack stack,
int p_219972_4_) |
com.google.common.collect.Multimap<java.lang.String,AttributeModifier> |
getAttributeModifiers(EquipmentSlotType equipmentSlot)
Deprecated.
|
Item |
getContainerItem()
Deprecated.
|
ItemStack |
getDefaultInstance() |
protected java.lang.String |
getDefaultTranslationKey() |
float |
getDestroySpeed(ItemStack stack,
BlockState state) |
ITextComponent |
getDisplayName(ItemStack stack) |
Food |
getFood() |
ItemGroup |
getGroup() |
int |
getHarvestLevel(ItemStack stack,
ToolType tool,
PlayerEntity player,
BlockState 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) |
Rarity |
getRarity(ItemStack stack) |
java.util.Set<ResourceLocation> |
getTags()
Retrieves a list of tags names this is known to be associated with.
|
ItemStackTileEntityRenderer |
getTileEntityItemStackRenderer() |
java.util.Set<ToolType> |
getToolTypes(ItemStack stack) |
java.lang.String |
getTranslationKey() |
java.lang.String |
getTranslationKey(ItemStack stack) |
UseAction |
getUseAction(ItemStack stack) |
int |
getUseDuration(ItemStack stack) |
boolean |
hasContainerItem()
Deprecated.
|
boolean |
hasCustomProperties() |
boolean |
hasEffect(ItemStack stack) |
boolean |
hitEntity(ItemStack stack,
LivingEntity target,
LivingEntity attacker) |
void |
inventoryTick(ItemStack stack,
World worldIn,
Entity entityIn,
int itemSlot,
boolean isSelected) |
boolean |
isComplex() |
boolean |
isCrossbow(ItemStack stack) |
boolean |
isDamageable() |
boolean |
isEnchantable(ItemStack stack) |
boolean |
isFood() |
boolean |
isIn(Tag<Item> tagIn) |
protected boolean |
isInGroup(ItemGroup group) |
boolean |
isRepairable(ItemStack stack)
Called by CraftingManager to determine if an item is reparable.
|
boolean |
itemInteractionForEntity(ItemStack stack,
PlayerEntity playerIn,
LivingEntity target,
Hand hand) |
boolean |
onBlockDestroyed(ItemStack stack,
World worldIn,
BlockState state,
BlockPos pos,
LivingEntity entityLiving) |
void |
onCreated(ItemStack stack,
World worldIn,
PlayerEntity playerIn) |
ActionResult<ItemStack> |
onItemRightClick(World worldIn,
PlayerEntity playerIn,
Hand handIn) |
ActionResultType |
onItemUse(ItemUseContext context) |
ItemStack |
onItemUseFinish(ItemStack stack,
World worldIn,
LivingEntity entityLiving) |
void |
onPlayerStoppedUsing(ItemStack stack,
World worldIn,
LivingEntity entityLiving,
int timeLeft) |
protected static RayTraceResult |
rayTrace(World worldIn,
PlayerEntity player,
RayTraceContext.FluidMode fluidMode) |
boolean |
shouldSyncTag() |
java.lang.String |
toString() |
boolean |
updateItemStackNBT(CompoundNBT nbt) |