net.minecraft.world.item

public class Item

implements ItemLike

bef
net.minecraft.world.item.Item
net.minecraft.class_1792
net.minecraft.item.Item
net.minecraft.item.Item
net.minecraft.server.v1_15_R1.Item

Field summary

Modifier and TypeField
public static final Map<Block, Item>
f
BY_BLOCK
field_8003
BLOCK_ITEMS
field_179220_a
private static final ItemPropertyFunction
a
PROPERTY_DAMAGED
field_8010
DAMAGED_PROPERTY_GETTER
field_185046_b
private static final ItemPropertyFunction
b
PROPERTY_DAMAGE
field_8000
DAMAGE_PROPERTY_GETTER
field_185047_c
private static final ItemPropertyFunction
c
PROPERTY_LEFTHANDED
field_8011
LEFTHANDED_PROPERTY_GETTER
field_185048_d
private static final ItemPropertyFunction
d
PROPERTY_COOLDOWN
field_8007
COOLDOWN_PROPERTY_GETTER
field_185049_e
private static final ItemPropertyFunction
e
PROPERTY_CUSTOM_MODEL_DATA
field_8002
CUSTOM_DATA_PROPERTY_GETTER
field_219973_e
protected static final UUID
g
BASE_ATTACK_DAMAGE_UUID
field_8006
ATTACK_DAMAGE_MODIFIER_UUID
field_111210_e
protected static final UUID
h
BASE_ATTACK_SPEED_UUID
field_8001
ATTACK_SPEED_MODIFIER_UUID
field_185050_h
protected static final Random
i
random
field_8005
RANDOM
field_77697_d
private final Map<ResourceLocation, ItemPropertyFunction>
k
properties
field_8015
propertyGetters
field_185051_m
protected final CreativeModeTab
j
category
field_8004
group
field_77701_a
private final Rarity
l
rarity
field_8009
rarity
field_208075_l
private final int
m
maxStackSize
field_8013
maxCount
field_77777_bU
maxStackSize
private final int
n
maxDamage
field_8012
maxDamage
field_77699_b
durability
private final Item
o
craftingRemainingItem
field_8008
recipeRemainder
field_77700_c
craftingResult
private String
p
descriptionId
field_8014
translationKey
field_77774_bZ
name
private final FoodProperties
q
foodProperties
field_18672
foodComponent
field_219974_q
foodInfo

Constructor summary

ModifierConstructor
public (Item$Properties settings)

Method summary

Modifier and TypeMethod
public static int
a(bef 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(bpe arg0)
byBlock(Block arg0)
method_7867(class_2248 arg0)
fromBlock(Block block)
func_150898_a(Block arg0)
getItemOf(Block arg0)
public void
a(bjt arg0, akw arg1, bek 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
a(jt arg0)
verifyTagAfterLoad(CompoundTag arg0)
method_7860(class_2487 arg0)
postProcessTag(CompoundTag tag)
func_179215_a(CompoundNBT arg0)
public boolean
a(byg arg0, bjt arg1, fk arg2, ayg 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
i()
asItem()
method_8389()
asItem()
func_199767_j()
getItem()
public final void
a(sm arg0, bej arg1)
addProperty(ResourceLocation arg0, ItemPropertyFunction arg1)
method_7863(class_2960 arg0, class_1800 arg1)
addPropertyGetter(Identifier id, ItemPropertyGetter property)
func_185043_a(ResourceLocation arg0, IItemPropertyGetter arg1)
public InteractionResult
a(bfw arg0)
useOn(UseOnContext arg0)
method_7884(class_1838 arg0)
useOnBlock(ItemUsageContext context)
func_195939_a(ItemUseContext arg0)
public float
a(bek arg0, byg arg1)
getDestroySpeed(ItemStack arg0, BlockState arg1)
method_7865(class_1799 arg0, class_2680 arg1)
getMiningSpeed(ItemStack stack, BlockState state)
func_150893_a(ItemStack arg0, BlockState arg1)
getDestroySpeed(ItemStack arg0, IBlockData arg1)
public InteractionResultHolder<ItemStack>
a(bjt arg0, ayg arg1, ajh 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(bek arg0, bjt arg1, akw 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
j()
getMaxStackSize()
method_7882()
getMaxCount()
func_77639_j()
getMaxStackSize()
public final int
k()
getMaxDamage()
method_7841()
getMaxDamage()
func_77612_l()
getMaxDurability()
public boolean
l()
canBeDepleted()
method_7846()
isDamageable()
func_77645_m()
usesDurability()
public boolean
a(bek arg0, akw arg1, akw 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(bek arg0, bjt arg1, byg arg2, fk arg3, akw 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(byg arg0)
canDestroySpecial(BlockState arg0)
method_7856(class_2680 arg0)
isEffectiveOn(BlockState state)
func_150897_b(BlockState arg0)
canDestroySpecialBlock(IBlockData arg0)
public boolean
a(bek arg0, ayg arg1, akw arg2, ajh 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)
func_111207_a(ItemStack arg0, PlayerEntity arg1, LivingEntity arg2, Hand arg3)
protected String
n()
getOrCreateDescriptionId()
method_7869()
getOrCreateTranslationKey()
func_195935_o()
public String
a()
getDescriptionId()
method_7876()
getTranslationKey()
func_77658_a()
getName()
public String
f(bek arg0)
getDescriptionId(ItemStack arg0)
method_7866(class_1799 arg0)
getTranslationKey(ItemStack stack)
func_77667_c(ItemStack arg0)
public boolean
o()
shouldOverrideMultiplayerNbt()
method_7887()
shouldSyncTagToClient()
func_77651_p()
public final Item
p()
getCraftingRemainingItem()
method_7858()
getRecipeRemainder()
func_77668_q()
public boolean
q()
hasCraftingRemainingItem()
method_7857()
hasRecipeRemainder()
func_77634_r()
public void
a(bek arg0, bjt arg1, akn 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(bek arg0, bjt arg1, ayg 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
R_()
isComplex()
method_16698()
isNetworkSynced()
func_77643_m_()
public UseAnim
e_(bek arg0)
getUseAnimation(ItemStack arg0)
method_7853(class_1799 arg0)
getUseAction(ItemStack stack)
func_77661_b(ItemStack arg0)
public int
f_(bek arg0)
getUseDuration(ItemStack arg0)
method_7881(class_1799 arg0)
getMaxUseTime(ItemStack stack)
func_77626_a(ItemStack arg0)
public void
a(bek arg0, bjt arg1, akw 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
g(bek arg0)
getName(ItemStack arg0)
method_7864(class_1799 arg0)
getName(ItemStack stack)
func_200295_i(ItemStack arg0)
public boolean
d_(bek arg0)
isFoil(ItemStack arg0)
method_7886(class_1799 arg0)
hasEnchantmentGlint(ItemStack stack)
func_77636_d(ItemStack arg0)
public Rarity
h(bek arg0)
getRarity(ItemStack arg0)
method_7862(class_1799 arg0)
getRarity(ItemStack stack)
func_77613_e(ItemStack arg0)
public boolean
g_(bek arg0)
isEnchantable(ItemStack arg0)
method_7870(class_1799 arg0)
isEnchantable(ItemStack stack)
func_77616_k(ItemStack arg0)
protected static HitResult
a(bjt arg0, ayg arg1, bjg$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)
func_219968_a(World arg0, PlayerEntity arg1, RayTraceContext$FluidMode arg2)
public int
c()
getEnchantmentValue()
method_7837()
getEnchantability()
func_77619_b()
public void
a(bda arg0, fy<bek> 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(bda arg0)
allowdedIn(CreativeModeTab arg0)
method_7877(class_1761 arg0)
isIn(ItemGroup group)
func_194125_a(ItemGroup arg0)
public final CreativeModeTab
r()
getItemCategory()
method_7859()
getGroup()
func_77640_w()
public boolean
a(bek arg0, bek 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<String, AttributeModifier>
a(aks arg0)
getDefaultAttributeModifiers(EquipmentSlot arg0)
method_7844(class_1304 arg0)
getModifiers(EquipmentSlot slot)
func_111205_h(EquipmentSlotType arg0)
public boolean
i(bek arg0)
useOnRelease(ItemStack arg0)
method_7838(class_1799 arg0)
isUsedOnRelease(ItemStack stack)
func_219970_i(ItemStack arg0)
public boolean
a(aaz<bef> arg0)
is(Tag<Item> arg0)
method_7855(class_3494<class_1792> arg0)
isIn(Tag<Item> tag)
func_206844_a(Tag<Item> arg0)
public boolean
t()
isEdible()
method_19263()
isFood()
func_219971_r()
isFood()
public FoodProperties
u()
getFoodProperties()
method_19264()
getFoodComponent()
func_219967_s()
getFoodInfo()
public SoundEvent
U_()
getDrinkingSound()
method_21831()
getDrinkSound()
func_225520_U__()
public SoundEvent
S_()
getEatingSound()
method_21830()
getEatSound()
func_225519_S__()
public ItemPropertyFunction
a(sm arg0)
getProperty(ResourceLocation arg0)
method_7868(class_2960 arg0)
getPropertyGetter(Identifier id)
func_185045_a(ResourceLocation arg0)
public boolean
h()
hasProperties()
method_7845()
hasPropertyGetters()
func_185040_i()
public Component
m()
getDescription()
method_7848()
getName()
func_200296_o()
public void
a(bek arg0, bjt arg1, List<lf> arg2, bft 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)
public ItemStack
s()
getDefaultInstance()
method_7854()
getStackForRender()
func_190903_i()