net.minecraft.item

public class Item

implements ItemConvertible

bce
net.minecraft.world.item.Item
net.minecraft.class_1792
net.minecraft.item.Item
net.minecraft.unmapped.C_vorddnax
net.minecraft.item.Item
net.minecraft.item.Item
net.minecraft.item.Item

Field summary

Modifier and TypeField
public static final Map<Block, Item>
f
BY_BLOCK
field_8003
BLOCK_ITEMS
f_abyetwgs
BLOCK_ITEMS
field_179220_a
BLOCK_TO_ITEM
private static final ItemPropertyGetter
a
PROPERTY_DAMAGED
field_8010
DAMAGED_PROPERTY_GETTER
f_ahdpbibm
DAMAGED
field_185046_b
DAMAGED_GETTER
private static final ItemPropertyGetter
b
PROPERTY_DAMAGE
field_8000
DAMAGE_PROPERTY_GETTER
f_docoxsrc
DAMAGE
field_185047_c
DAMAGE_GETTER
private static final ItemPropertyGetter
c
PROPERTY_LEFTHANDED
field_8011
LEFTHANDED_PROPERTY_GETTER
f_zgwvynvb
LEFTHANDED
field_185048_d
LEFTHANDED_GETTER
private static final ItemPropertyGetter
d
PROPERTY_COOLDOWN
field_8007
COOLDOWN_PROPERTY_GETTER
f_ylkrityb
COOLDOWN
field_185049_e
COOLDOWN_GETTER
private static final ItemPropertyGetter
e
PROPERTY_CUSTOM_MODEL_DATA
field_8002
CUSTOM_DATA_PROPERTY_GETTER
f_bcxpbhiv
CUSTOM_MODEL_DATA
field_219973_e
MODELDATA_GETTER
protected static final UUID
g
BASE_ATTACK_DAMAGE_UUID
field_8006
ATTACK_DAMAGE_MODIFIER_UUID
f_ewqskwyi
ATTACK_DAMAGE_MODIFIER_UUID
field_111210_e
ATTACK_DAMAGE_MODIFIER
protected static final UUID
h
BASE_ATTACK_SPEED_UUID
field_8001
ATTACK_SPEED_MODIFIER_UUID
f_oajedmeb
ATTACK_SPEED_MODIFIER_UUID
field_185050_h
ATTACK_SPEED_MODIFIER
protected static final Random
i
random
field_8005
RANDOM
f_wuigbjfk
random
field_77697_d
random
private final Map<Identifier, ItemPropertyGetter>
k
properties
field_8015
propertyGetters
f_yhqgjysb
properties
field_185051_m
properties
protected final ItemGroup
j
category
field_8004
group
f_dednzptk
creativeModeTab
field_77701_a
group
private final Rarity
l
rarity
field_8009
rarity
f_heedcfbq
rarity
field_208075_l
rarity
private final int
m
maxStackSize
field_8013
maxCount
f_nvmedvkr
maxStackSize
field_77777_bU
maxStackSize
private final int
n
maxDamage
field_8012
maxDamage
f_oruslumc
maxDamage
field_77699_b
maxDamage
private final Item
o
craftingRemainingItem
field_8008
recipeRemainder
f_lfoqoljh
recipeRemainder
field_77700_c
containerItem
private String
p
descriptionId
field_8014
translationKey
f_kdmqzdxr
key
field_77774_bZ
translationKey
private final FoodComponent
q
foodProperties
field_18672
foodComponent
f_oosslxjd
foodProperties
field_219974_q
food

Constructor summary

ModifierConstructor
public (Item$Settings settings)

Method summary

Modifier and TypeMethod
public static int
a(bce arg0)
getId(Item arg0)
method_7880(class_1792 arg0)
getRawId(Item item)
m_uuqggdre(C_vorddnax arg0)
getId(Item item)
func_150891_b(Item arg0)
getIdFromItem(Item itemIn)
public static Item
b(int arg0)
byId(int arg0)
method_7875(int arg0)
byRawId(int id)
m_ucwrwzur(int arg0)
byId(int id)
func_150899_d(int arg0)
getItemById(int id)
public static Item
a(bmv arg0)
byBlock(Block arg0)
method_7867(class_2248 arg0)
fromBlock(Block block)
m_dgdssmij(C_mmxmpdoq arg0)
byBlock(Block block)
func_150898_a(Block arg0)
getItemFromBlock(Block blockIn)
public void
a(bhr arg0, aix arg1, bcj 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)
m_mvuvxzgn(C_cdctfzbn arg0, C_usxaxydn arg1, C_sddaxwyk arg2, int arg3)
m_47139440(World arg0, LivingEntity arg1, ItemStack arg2, int arg3)
func_219972_a(World arg0, LivingEntity arg1, ItemStack arg2, int arg3)
func_219972_a(World worldIn, LivingEntity livingEntityIn, ItemStack stack, int count)
public boolean
a(id arg0)
verifyTagAfterLoad(CompoundTag arg0)
method_7860(class_2487 arg0)
postProcessTag(CompoundTag tag)
m_fdjkxleb(C_hhlwcnih arg0)
validateNbt(NbtCompound nbt)
func_179215_a(CompoundNBT arg0)
updateItemStackNBT(CompoundNBT nbt)
public boolean
a(bvt arg0, bhr arg1, ew arg2, awg 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)
m_tkohmxbq(C_txtbiemp arg0, C_cdctfzbn arg1, C_hynzadkk arg2, C_jzrpycqo arg3)
canMineBlock(BlockState state, World world, BlockPos pos, PlayerEntity player)
func_195938_a(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3)
canPlayerBreakBlockWhileHolding(BlockState state, World worldIn, BlockPos pos, PlayerEntity player)
public Item
g()
asItem()
method_8389()
asItem()
m_auwfolqh()
asItem()
func_199767_j()
asItem()
public final void
a(qv arg0, bci arg1)
addProperty(ResourceLocation arg0, ItemPropertyFunction arg1)
method_7863(class_2960 arg0, class_1800 arg1)
addPropertyGetter(Identifier id, ItemPropertyGetter property)
m_jbszwnjj(C_ncpywfca arg0, C_xrfgumoq arg1)
addProperty(Identifier key, ItemProperty property)
func_185043_a(ResourceLocation arg0, IItemPropertyGetter arg1)
addPropertyOverride(ResourceLocation key, IItemPropertyGetter getter)
public ActionResult
a(bdu arg0)
useOn(UseOnContext arg0)
method_7884(class_1838 arg0)
useOnBlock(ItemUsageContext context)
m_mtceqnlj(C_yyklzime arg0)
useOn(ItemUseContext ctx)
func_195939_a(ItemUseContext arg0)
onItemUse(ItemUseContext context)
public float
a(bcj arg0, bvt arg1)
getDestroySpeed(ItemStack arg0, BlockState arg1)
method_7865(class_1799 arg0, class_2680 arg1)
getMiningSpeed(ItemStack stack, BlockState state)
m_nstqircw(C_sddaxwyk arg0, C_txtbiemp arg1)
getMiningSpeed(ItemStack stack, BlockState state)
func_150893_a(ItemStack arg0, BlockState arg1)
getDestroySpeed(ItemStack stack, BlockState state)
public TypedActionResult<ItemStack>
a(bhr arg0, awg arg1, ahi 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)
m_znsmbimv(C_cdctfzbn arg0, C_jzrpycqo arg1, C_laxmzoqs arg2)
startUsing(World world, PlayerEntity player, InteractionHand hand)
func_77659_a(World arg0, PlayerEntity arg1, Hand arg2)
onItemRightClick(World worldIn, PlayerEntity playerIn, Hand handIn)
public ItemStack
a(bcj arg0, bhr arg1, aix 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)
m_knbnsgbn(C_sddaxwyk arg0, C_cdctfzbn arg1, C_usxaxydn arg2)
finishUsing(ItemStack stack, World world, LivingEntity entity)
func_77654_b(ItemStack arg0, World arg1, LivingEntity arg2)
onItemUseFinish(ItemStack stack, World worldIn, LivingEntity entityLiving)
public final int
h()
getMaxStackSize()
method_7882()
getMaxCount()
m_dgwjistu()
getMaxStackSize()
func_77639_j()
getMaxStackSize()
public final int
i()
getMaxDamage()
method_7841()
getMaxDamage()
m_chqkfzom()
getMaxDamage()
func_77612_l()
getMaxDamage()
public boolean
j()
canBeDepleted()
method_7846()
isDamageable()
m_amwdnbpq()
isDamageable()
func_77645_m()
isDamageable()
public boolean
a(bcj arg0, aix arg1, aix 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)
m_plxsgnqi(C_sddaxwyk arg0, C_usxaxydn arg1, C_usxaxydn arg2)
attack(ItemStack stack, LivingEntity target, LivingEntity attacker)
func_77644_a(ItemStack arg0, LivingEntity arg1, LivingEntity arg2)
hitEntity(ItemStack stack, LivingEntity target, LivingEntity attacker)
public boolean
a(bcj arg0, bhr arg1, bvt arg2, ew arg3, aix 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)
m_cnsoybmp(C_sddaxwyk arg0, C_cdctfzbn arg1, C_txtbiemp arg2, C_hynzadkk arg3, C_usxaxydn arg4)
mineBlock(ItemStack stack, World world, BlockState state, BlockPos pos, LivingEntity entity)
func_179218_a(ItemStack arg0, World arg1, BlockState arg2, BlockPos arg3, LivingEntity arg4)
onBlockDestroyed(ItemStack stack, World worldIn, BlockState state, BlockPos pos, LivingEntity entityLiving)
public boolean
b(bvt arg0)
canDestroySpecial(BlockState arg0)
method_7856(class_2680 arg0)
isEffectiveOn(BlockState state)
m_zogiiefp(C_txtbiemp arg0)
canMineBlock(BlockState state)
func_150897_b(BlockState arg0)
canHarvestBlock(BlockState blockIn)
public boolean
a(bcj arg0, awg arg1, aix arg2, ahi arg3)
interactEnemy(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)
m_qzwfsrwq(C_sddaxwyk arg0, C_jzrpycqo arg1, C_usxaxydn arg2, C_laxmzoqs arg3)
interact(ItemStack stack, PlayerEntity player, LivingEntity entity, InteractionHand hand)
func_111207_a(ItemStack arg0, PlayerEntity arg1, LivingEntity arg2, Hand arg3)
itemInteractionForEntity(ItemStack stack, PlayerEntity playerIn, LivingEntity target, Hand hand)
protected String
l()
getOrCreateDescriptionId()
method_7869()
getOrCreateTranslationKey()
m_ptxvhcty()
makeTranslationKey()
func_195935_o()
getDefaultTranslationKey()
public String
a()
getDescriptionId()
method_7876()
getTranslationKey()
m_srbfwvie()
getTranslationKey()
func_77658_a()
getTranslationKey()
public String
f(bcj arg0)
getDescriptionId(ItemStack arg0)
method_7866(class_1799 arg0)
getTranslationKey(ItemStack stack)
m_qibylykw(C_sddaxwyk arg0)
getTranslationKey(ItemStack stack)
func_77667_c(ItemStack arg0)
getTranslationKey(ItemStack stack)
public boolean
m()
shouldOverrideMultiplayerNbt()
method_7887()
shouldSyncTagToClient()
m_vaqdqrmz()
shouldSyncNbt()
func_77651_p()
shouldSyncTag()
public final Item
n()
getCraftingRemainingItem()
method_7858()
getRecipeRemainder()
m_rdxwitrr()
getRecipeRemainder()
func_77668_q()
getContainerItem()
public boolean
o()
hasCraftingRemainingItem()
method_7857()
hasRecipeRemainder()
m_fofdychq()
hasRecipeRemainder()
func_77634_r()
hasContainerItem()
public void
a(bcj arg0, bhr arg1, aio 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)
m_qqswvlkq(C_sddaxwyk arg0, C_cdctfzbn arg1, C_astfners arg2, int arg3, boolean arg4)
tick(ItemStack stack, World world, Entity entity, int slot, boolean selected)
func_77663_a(ItemStack arg0, World arg1, Entity arg2, int arg3, boolean arg4)
inventoryTick(ItemStack stack, World worldIn, Entity entityIn, int itemSlot, boolean isSelected)
public void
b(bcj arg0, bhr arg1, awg 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)
m_fwxnsuhn(C_sddaxwyk arg0, C_cdctfzbn arg1, C_jzrpycqo arg2)
onResult(ItemStack stack, World world, PlayerEntity player)
func_77622_d(ItemStack arg0, World arg1, PlayerEntity arg2)
onCreated(ItemStack stack, World worldIn, PlayerEntity playerIn)
public boolean
O_()
isComplex()
method_16698()
isNetworkSynced()
m_gtcfvxxg()
isNetworkSynced()
func_77643_m_()
isComplex()
public UseAction
e_(bcj arg0)
getUseAnimation(ItemStack arg0)
method_7853(class_1799 arg0)
getUseAction(ItemStack stack)
m_yvddkccr(C_sddaxwyk arg0)
getUseAction(ItemStack stack)
func_77661_b(ItemStack arg0)
getUseAction(ItemStack stack)
public int
f_(bcj arg0)
getUseDuration(ItemStack arg0)
method_7881(class_1799 arg0)
getMaxUseTime(ItemStack stack)
m_hwznhtnf(C_sddaxwyk arg0)
getUseDuration(ItemStack stack)
func_77626_a(ItemStack arg0)
getUseDuration(ItemStack stack)
public void
a(bcj arg0, bhr arg1, aix 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)
m_hwkxajsh(C_sddaxwyk arg0, C_cdctfzbn arg1, C_usxaxydn arg2, int arg3)
stopUsing(ItemStack stack, World world, LivingEntity entity, int remainingUseTime)
func_77615_a(ItemStack arg0, World arg1, LivingEntity arg2, int arg3)
onPlayerStoppedUsing(ItemStack stack, World worldIn, LivingEntity entityLiving, int timeLeft)
public Text
g(bcj arg0)
getName(ItemStack arg0)
method_7864(class_1799 arg0)
getName(ItemStack stack)
m_rxtlbzdr(C_sddaxwyk arg0)
getName(ItemStack stack)
func_200295_i(ItemStack arg0)
getDisplayName(ItemStack stack)
public Rarity
h(bcj arg0)
getRarity(ItemStack arg0)
method_7862(class_1799 arg0)
getRarity(ItemStack stack)
m_vdgwxvcg(C_sddaxwyk arg0)
getRarity(ItemStack stack)
func_77613_e(ItemStack arg0)
getRarity(ItemStack stack)
public boolean
g_(bcj arg0)
isEnchantable(ItemStack arg0)
method_7870(class_1799 arg0)
isEnchantable(ItemStack stack)
m_dxjqmgus(C_sddaxwyk arg0)
isEnchantable(ItemStack stack)
func_77616_k(ItemStack arg0)
isEnchantable(ItemStack stack)
protected static HitResult
a(bhr arg0, awg arg1, bhf$b arg2)
getPlayerPOVHitResult(Level arg0, Player arg1, ClipContext$Fluid arg2)
method_7872(class_1937 arg0, class_1657 arg1, class_3959$class_242 arg2)
rayTrace(World world, PlayerEntity player, RayTraceContext$FluidHandling fluidHandling)
m_vkltyloi(C_cdctfzbn arg0, C_jzrpycqo arg1, C_uyikqwzv$C_krdrvutw arg2)
getUseTarget(World arg0, PlayerEntity arg1, RayCastContext$FluidHandling arg2)
func_219968_a(World arg0, PlayerEntity arg1, RayTraceContext$FluidMode arg2)
rayTrace(World worldIn, PlayerEntity player, RayTraceContext$FluidMode fluidMode)
public int
c()
getEnchantmentValue()
method_7837()
getEnchantability()
m_tspifhtw()
getEnchantability()
func_77619_b()
getItemEnchantability()
public void
a(bba arg0, fk<bcj> arg1)
fillItemCategory(CreativeModeTab arg0, NonNullList<ItemStack> arg1)
method_7850(class_1761 arg0, class_2371<class_1799> arg1)
appendStacks(ItemGroup group, DefaultedList<ItemStack> stacks)
m_vsywafjh(C_lnokcayd arg0, C_rnrfftze<C_sddaxwyk> arg1)
addToCreativeMenu(CreativeModeTab group, DefaultedList<ItemStack> list)
func_150895_a(ItemGroup arg0, NonNullList<ItemStack> arg1)
fillItemGroup(ItemGroup group, NonNullList<ItemStack> items)
protected boolean
a(bba arg0)
allowdedIn(CreativeModeTab arg0)
method_7877(class_1761 arg0)
isIn(ItemGroup group)
m_iwsnsoow(C_lnokcayd arg0)
isInCreativeModeTab(CreativeModeTab tab)
func_194125_a(ItemGroup arg0)
isInGroup(ItemGroup group)
public final ItemGroup
p()
getItemCategory()
method_7859()
getGroup()
m_zydiaghn()
getCreativeModeTab()
func_77640_w()
getGroup()
public boolean
a(bcj arg0, bcj arg1)
isValidRepairItem(ItemStack arg0, ItemStack arg1)
method_7878(class_1799 arg0, class_1799 arg1)
canRepair(ItemStack stack, ItemStack ingredient)
m_hsttveiz(C_sddaxwyk arg0, C_sddaxwyk arg1)
isRepairable(ItemStack stack, ItemStack ingredient)
func_82789_a(ItemStack arg0, ItemStack arg1)
getIsRepairable(ItemStack toRepair, ItemStack repair)
public com.google.common.collect.Multimap<String, EntityAttributeModifier>
a(ait arg0)
getDefaultAttributeModifiers(EquipmentSlot arg0)
method_7844(class_1304 arg0)
getModifiers(EquipmentSlot slot)
m_xljmpsqi(C_yuycoehb arg0)
getDefaultAttributeModifiers(EquipmentSlot slot)
func_111205_h(EquipmentSlotType arg0)
getAttributeModifiers(EquipmentSlotType equipmentSlot)
public boolean
i(bcj arg0)
useOnRelease(ItemStack arg0)
method_7838(class_1799 arg0)
isUsedOnRelease(ItemStack stack)
m_wanuqhiu(C_sddaxwyk arg0)
m_24720640(ItemStack arg0)
func_219970_i(ItemStack arg0)
isCrossbow(ItemStack stack)
public boolean
a(zg<bce> arg0)
is(Tag<Item> arg0)
method_7855(class_3494<class_1792> arg0)
isIn(Tag<Item> tag)
m_mtflutuy(C_mokekhxv<C_vorddnax> arg0)
is(Tag<Item> tag)
func_206844_a(Tag<Item> arg0)
isIn(Tag<Item> tagIn)
public boolean
r()
isEdible()
method_19263()
isFood()
m_wfgwurwk()
isFood()
func_219971_r()
isFood()
public FoodComponent
s()
getFoodProperties()
method_19264()
getFoodComponent()
m_xzfkfodv()
getFoodProperties()
func_219967_s()
getFood()
public ItemPropertyGetter
a(qv arg0)
getProperty(ResourceLocation arg0)
method_7868(class_2960 arg0)
getPropertyGetter(Identifier id)
m_ytnmwchf(C_ncpywfca arg0)
getProperty(Identifier key)
func_185045_a(ResourceLocation arg0)
getPropertyGetter(ResourceLocation key)
public boolean
f()
hasProperties()
method_7845()
hasPropertyGetters()
m_esbnonnq()
hasProperties()
func_185040_i()
hasCustomProperties()
public Text
k()
getDescription()
method_7848()
getName()
m_bdsymcbv()
getName()
func_200296_o()
getName()
public void
a(bcj arg0, bhr arg1, List<jo> arg2, bdr 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)
m_vlpdhsgt(C_sddaxwyk arg0, C_cdctfzbn arg1, List<C_rdaqiwdt> arg2, C_taebrtdw arg3)
addHoverText(ItemStack stack, World world, List<Text> tooltip, TooltipFlag flag)
func_77624_a(ItemStack arg0, World arg1, List<ITextComponent> arg2, ITooltipFlag arg3)
addInformation(ItemStack stack, World worldIn, List<ITextComponent> tooltip, ITooltipFlag flagIn)
public boolean
d_(bcj arg0)
isFoil(ItemStack arg0)
method_7886(class_1799 arg0)
hasEnchantmentGlint(ItemStack stack)
m_pppzvkhc(C_sddaxwyk arg0)
hasEnchantmentGlint(ItemStack stack)
func_77636_d(ItemStack arg0)
hasEffect(ItemStack stack)
public ItemStack
q()
getDefaultInstance()
method_7854()
getStackForRender()
m_lthgnjiq()
defaultItem()
func_190903_i()
getDefaultInstance()