net.minecraft.world.item

public class Item

implements ItemLike

blu
net.minecraft.world.item.Item
net.minecraft.class_1792
net.minecraft.item.Item
net.minecraft.item.Item
net.minecraft.server.v1_16_R2.Item

Field summary

Modifier and TypeField
public static final Map<Block, Item>
e
BY_BLOCK
field_8003
BLOCK_ITEMS
field_179220_a
protected static final UUID
f
BASE_ATTACK_DAMAGE_UUID
field_8006
ATTACK_DAMAGE_MODIFIER_ID
field_111210_e
protected static final UUID
g
BASE_ATTACK_SPEED_UUID
field_8001
ATTACK_SPEED_MODIFIER_ID
field_185050_h
protected static final Random
h
random
field_8005
RANDOM
field_77697_d
RANDOM
protected final CreativeModeTab
i
category
field_8004
group
field_77701_a
private final Rarity
a
rarity
field_8009
rarity
field_208075_l
private final int
b
maxStackSize
field_8013
maxCount
field_77777_bU
maxStackSize
private final int
c
maxDamage
field_8012
maxDamage
field_77699_b
durability
private final boolean
d
isFireResistant
field_21979
fireproof
field_234684_d_
private final Item
j
craftingRemainingItem
field_8008
recipeRemainder
field_77700_c
craftingResult
private String
k
descriptionId
field_8014
translationKey
field_77774_bZ
name
private final FoodProperties
l
foodProperties
field_18672
foodComponent
field_219974_q
foodInfo

Constructor summary

ModifierConstructor
public (Item$Properties settings)

Method summary

Modifier and TypeMethod
public static int
a(blu arg0)
getId(Item arg0)
method_7880(class_1792 arg0)
getRawId(Item item)
func_150891_b(Item arg0)
getId(Item arg0)
public static Item
b(int arg0)
byId(int arg0)
method_7875(int arg0)
byRawId(int id)
func_150899_d(int arg0)
getById(int arg0)
public static Item
a(bul arg0)
byBlock(Block arg0)
method_7867(class_2248 arg0)
fromBlock(Block block)
func_150898_a(Block arg0)
getItemOf(Block arg0)
public void
a(bru arg0, aqj arg1, bly arg2, int arg3)
onUseTick(Level arg0, LivingEntity arg1, ItemStack arg2, int arg3)
method_7852(class_1937 arg0, class_1309 arg1, class_1799 arg2, int arg3)
usageTick(World world, LivingEntity user, ItemStack stack, int remainingUseTicks)
func_219972_a(World arg0, LivingEntity arg1, ItemStack arg2, int arg3)
public boolean
b(md arg0)
verifyTagAfterLoad(CompoundTag arg0)
method_7860(class_2487 arg0)
postProcessTag(CompoundTag tag)
func_179215_a(CompoundNBT arg0)
public boolean
a(cee arg0, bru arg1, fx arg2, bft arg3)
canAttackBlock(BlockState arg0, Level arg1, BlockPos arg2, Player arg3)
method_7885(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1657 arg3)
canMine(BlockState state, World world, BlockPos pos, PlayerEntity miner)
func_195938_a(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3)
public Item
h()
asItem()
method_8389()
asItem()
func_199767_j()
getItem()
public InteractionResult
a(bnx arg0)
useOn(UseOnContext arg0)
method_7884(class_1838 arg0)
useOnBlock(ItemUsageContext context)
func_195939_a(ItemUseContext arg0)
public float
a(bly arg0, cee arg1)
getDestroySpeed(ItemStack arg0, BlockState arg1)
method_7865(class_1799 arg0, class_2680 arg1)
getMiningSpeedMultiplier(ItemStack stack, BlockState state)
func_150893_a(ItemStack arg0, BlockState arg1)
getDestroySpeed(ItemStack arg0, IBlockData arg1)
public InteractionResultHolder<ItemStack>
a(bru arg0, bft arg1, aoq arg2)
use(Level arg0, Player arg1, InteractionHand arg2)
method_7836(class_1937 arg0, class_1657 arg1, class_1268 arg2)
use(World world, PlayerEntity user, Hand hand)
func_77659_a(World arg0, PlayerEntity arg1, Hand arg2)
public ItemStack
a(bly arg0, bru arg1, aqj arg2)
finishUsingItem(ItemStack arg0, Level arg1, LivingEntity arg2)
method_7861(class_1799 arg0, class_1937 arg1, class_1309 arg2)
finishUsing(ItemStack stack, World world, LivingEntity user)
func_77654_b(ItemStack arg0, World arg1, LivingEntity arg2)
public final int
i()
getMaxStackSize()
method_7882()
getMaxCount()
func_77639_j()
getMaxStackSize()
public final int
j()
getMaxDamage()
method_7841()
getMaxDamage()
func_77612_l()
getMaxDurability()
public boolean
k()
canBeDepleted()
method_7846()
isDamageable()
func_77645_m()
usesDurability()
public boolean
a(bly arg0, aqj arg1, aqj arg2)
hurtEnemy(ItemStack arg0, LivingEntity arg1, LivingEntity arg2)
method_7873(class_1799 arg0, class_1309 arg1, class_1309 arg2)
postHit(ItemStack stack, LivingEntity target, LivingEntity attacker)
func_77644_a(ItemStack arg0, LivingEntity arg1, LivingEntity arg2)
public boolean
a(bly arg0, bru arg1, cee arg2, fx arg3, aqj arg4)
mineBlock(ItemStack arg0, Level arg1, BlockState arg2, BlockPos arg3, LivingEntity arg4)
method_7879(class_1799 arg0, class_1937 arg1, class_2680 arg2, class_2338 arg3, class_1309 arg4)
postMine(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity miner)
func_179218_a(ItemStack arg0, World arg1, BlockState arg2, BlockPos arg3, LivingEntity arg4)
public boolean
b(cee arg0)
isCorrectToolForDrops(BlockState arg0)
method_7856(class_2680 arg0)
isEffectiveOn(BlockState state)
func_150897_b(BlockState arg0)
canDestroySpecialBlock(IBlockData arg0)
public InteractionResult
a(bly arg0, bft arg1, aqj arg2, aoq arg3)
interactLivingEntity(ItemStack arg0, Player arg1, LivingEntity arg2, InteractionHand arg3)
method_7847(class_1799 arg0, class_1657 arg1, class_1309 arg2, class_1268 arg3)
useOnEntity(ItemStack stack, PlayerEntity user, LivingEntity entity, Hand hand)
func_111207_a(ItemStack arg0, PlayerEntity arg1, LivingEntity arg2, Hand arg3)
protected String
m()
getOrCreateDescriptionId()
method_7869()
getOrCreateTranslationKey()
func_195935_o()
public String
a()
getDescriptionId()
method_7876()
getTranslationKey()
func_77658_a()
getName()
public String
f(bly arg0)
getDescriptionId(ItemStack arg0)
method_7866(class_1799 arg0)
getTranslationKey(ItemStack stack)
func_77667_c(ItemStack arg0)
public boolean
n()
shouldOverrideMultiplayerNbt()
method_7887()
shouldSyncTagToClient()
func_77651_p()
public final Item
o()
getCraftingRemainingItem()
method_7858()
getRecipeRemainder()
func_77668_q()
getCraftingRemainingItem()
public boolean
p()
hasCraftingRemainingItem()
method_7857()
hasRecipeRemainder()
func_77634_r()
public void
a(bly arg0, bru arg1, apx arg2, int arg3, boolean arg4)
inventoryTick(ItemStack arg0, Level arg1, Entity arg2, int arg3, boolean arg4)
method_7888(class_1799 arg0, class_1937 arg1, class_1297 arg2, int arg3, boolean arg4)
inventoryTick(ItemStack stack, World world, Entity entity, int slot, boolean selected)
func_77663_a(ItemStack arg0, World arg1, Entity arg2, int arg3, boolean arg4)
public void
b(bly arg0, bru arg1, bft arg2)
onCraftedBy(ItemStack arg0, Level arg1, Player arg2)
method_7843(class_1799 arg0, class_1937 arg1, class_1657 arg2)
onCraft(ItemStack stack, World world, PlayerEntity player)
func_77622_d(ItemStack arg0, World arg1, PlayerEntity arg2)
public boolean
ac_()
isComplex()
method_16698()
isNetworkSynced()
func_77643_m_()
public UseAnim
d_(bly arg0)
getUseAnimation(ItemStack arg0)
method_7853(class_1799 arg0)
getUseAction(ItemStack stack)
func_77661_b(ItemStack arg0)
public int
e_(bly arg0)
getUseDuration(ItemStack arg0)
method_7881(class_1799 arg0)
getMaxUseTime(ItemStack stack)
func_77626_a(ItemStack arg0)
public void
a(bly arg0, bru arg1, aqj arg2, int arg3)
releaseUsing(ItemStack arg0, Level arg1, LivingEntity arg2, int arg3)
method_7840(class_1799 arg0, class_1937 arg1, class_1309 arg2, int arg3)
onStoppedUsing(ItemStack stack, World world, LivingEntity user, int remainingUseTicks)
func_77615_a(ItemStack arg0, World arg1, LivingEntity arg2, int arg3)
public Component
h(bly arg0)
getName(ItemStack arg0)
method_7864(class_1799 arg0)
getName(ItemStack stack)
func_200295_i(ItemStack arg0)
public boolean
e(bly arg0)
isFoil(ItemStack arg0)
method_7886(class_1799 arg0)
hasGlint(ItemStack stack)
func_77636_d(ItemStack arg0)
public Rarity
i(bly arg0)
getRarity(ItemStack arg0)
method_7862(class_1799 arg0)
getRarity(ItemStack stack)
func_77613_e(ItemStack arg0)
public boolean
f_(bly arg0)
isEnchantable(ItemStack arg0)
method_7870(class_1799 arg0)
isEnchantable(ItemStack stack)
func_77616_k(ItemStack arg0)
protected static BlockHitResult
a(bru arg0, bft arg1, brc$b arg2)
getPlayerPOVHitResult(Level arg0, Player arg1, ClipContext$Fluid arg2)
method_7872(class_1937 arg0, class_1657 arg1, class_3959$class_242 arg2)
raycast(World world, PlayerEntity player, RaycastContext$FluidHandling fluidHandling)
func_219968_a(World arg0, PlayerEntity arg1, RayTraceContext$FluidMode arg2)
public int
c()
getEnchantmentValue()
method_7837()
getEnchantability()
func_77619_b()
public void
a(bkp arg0, gj<bly> arg1)
fillItemCategory(CreativeModeTab arg0, NonNullList<ItemStack> arg1)
method_7850(class_1761 arg0, class_2371<class_1799> arg1)
appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)
func_150895_a(ItemGroup arg0, NonNullList<ItemStack> arg1)
protected boolean
a(bkp arg0)
allowdedIn(CreativeModeTab arg0)
method_7877(class_1761 arg0)
isIn(ItemGroup group)
func_194125_a(ItemGroup arg0)
public final CreativeModeTab
q()
getItemCategory()
method_7859()
getGroup()
func_77640_w()
public boolean
a(bly arg0, bly arg1)
isValidRepairItem(ItemStack arg0, ItemStack arg1)
method_7878(class_1799 arg0, class_1799 arg1)
canRepair(ItemStack stack, ItemStack ingredient)
func_82789_a(ItemStack arg0, ItemStack arg1)
public com.google.common.collect.Multimap<Attribute, AttributeModifier>
a(aqc arg0)
getDefaultAttributeModifiers(EquipmentSlot arg0)
method_7844(class_1304 arg0)
getAttributeModifiers(EquipmentSlot slot)
func_111205_h(EquipmentSlotType arg0)
public boolean
j(bly arg0)
useOnRelease(ItemStack arg0)
method_7838(class_1799 arg0)
isUsedOnRelease(ItemStack stack)
func_219970_i(ItemStack arg0)
public ItemStack
r()
getDefaultInstance()
method_7854()
getStackForRender()
func_190903_i()
public boolean
a(aej<blu> arg0)
is(Tag<Item> arg0)
method_7855(class_3494<class_1792> arg0)
isIn(Tag<Item> tag)
func_206844_a(ITag<Item> arg0)
public boolean
s()
isEdible()
method_19263()
isFood()
func_219971_r()
isFood()
public FoodProperties
t()
getFoodProperties()
method_19264()
getFoodComponent()
func_219967_s()
getFoodInfo()
public SoundEvent
ae_()
getDrinkingSound()
method_21831()
getDrinkSound()
func_225520_U__()
public SoundEvent
ad_()
getEatingSound()
method_21830()
getEatSound()
func_225519_S__()
public boolean
u()
isFireResistant()
method_24358()
isFireproof()
func_234687_u_()
public boolean
a(aph arg0)
canBeHurtBy(DamageSource arg0)
method_24357(class_1282 arg0)
damage(DamageSource source)
func_234685_a_(DamageSource arg0)
public Component
l()
getDescription()
method_7848()
getName()
func_200296_o()
public void
a(bly arg0, bru arg1, List<nr> arg2, bni arg3)
appendHoverText(ItemStack arg0, Level arg1, List<Component> arg2, TooltipFlag arg3)
method_7851(class_1799 arg0, class_1937 arg1, List<class_2561> arg2, class_1836 arg3)
appendTooltip(ItemStack stack, World world, List<Text> tooltip, TooltipContext context)
func_77624_a(ItemStack arg0, World arg1, List<ITextComponent> arg2, ITooltipFlag arg3)