net.minecraft.world.item

public class Item

implements ItemLike

bce
net.minecraft.world.item.Item
net.minecraft.class_1792
net.minecraft.item.Item
net.minecraft.item.Item
net.minecraft.server.v1_14_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(bce 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(bmv arg0)
byBlock(Block arg0)
method_7867(class_2248 arg0)
fromBlock(Block block)
func_150898_a(Block arg0)
getItemOf(Block arg0)
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)
func_219972_a(World arg0, LivingEntity arg1, ItemStack arg2, int arg3)
public boolean
a(id arg0)
verifyTagAfterLoad(CompoundTag arg0)
method_7860(class_2487 arg0)
postProcessTag(CompoundTag tag)
func_179215_a(CompoundNBT arg0)
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)
func_195938_a(BlockState arg0, World arg1, BlockPos arg2, PlayerEntity arg3)
public Item
g()
asItem()
method_8389()
asItem()
func_199767_j()
getItem()
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)
func_185043_a(ResourceLocation arg0, IItemPropertyGetter arg1)
public InteractionResult
a(bdu arg0)
useOn(UseOnContext arg0)
method_7884(class_1838 arg0)
useOnBlock(ItemUsageContext context)
func_195939_a(ItemUseContext arg0)
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)
func_150893_a(ItemStack arg0, BlockState arg1)
getDestroySpeed(ItemStack arg0, IBlockData arg1)
public InteractionResultHolder<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)
func_77659_a(World arg0, PlayerEntity arg1, Hand arg2)
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)
func_77654_b(ItemStack arg0, World arg1, LivingEntity arg2)
public final int
h()
getMaxStackSize()
method_7882()
getMaxCount()
func_77639_j()
getMaxStackSize()
public final int
i()
getMaxDamage()
method_7841()
getMaxDamage()
func_77612_l()
getMaxDurability()
public boolean
j()
canBeDepleted()
method_7846()
isDamageable()
func_77645_m()
usesDurability()
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)
func_77644_a(ItemStack arg0, LivingEntity arg1, LivingEntity arg2)
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)
func_179218_a(ItemStack arg0, World arg1, BlockState arg2, BlockPos arg3, LivingEntity arg4)
public boolean
b(bvt arg0)
canDestroySpecial(BlockState arg0)
method_7856(class_2680 arg0)
isEffectiveOn(BlockState state)
func_150897_b(BlockState arg0)
canDestroySpecialBlock(IBlockData arg0)
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)
func_111207_a(ItemStack arg0, PlayerEntity arg1, LivingEntity arg2, Hand arg3)
protected String
l()
getOrCreateDescriptionId()
method_7869()
getOrCreateTranslationKey()
func_195935_o()
public String
a()
getDescriptionId()
method_7876()
getTranslationKey()
func_77658_a()
getName()
public String
f(bcj arg0)
getDescriptionId(ItemStack arg0)
method_7866(class_1799 arg0)
getTranslationKey(ItemStack stack)
func_77667_c(ItemStack arg0)
public boolean
m()
shouldOverrideMultiplayerNbt()
method_7887()
shouldSyncTagToClient()
func_77651_p()
public final Item
n()
getCraftingRemainingItem()
method_7858()
getRecipeRemainder()
func_77668_q()
public boolean
o()
hasCraftingRemainingItem()
method_7857()
hasRecipeRemainder()
func_77634_r()
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)
func_77663_a(ItemStack arg0, World arg1, Entity arg2, int arg3, boolean arg4)
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)
func_77622_d(ItemStack arg0, World arg1, PlayerEntity arg2)
public boolean
O_()
isComplex()
method_16698()
isNetworkSynced()
func_77643_m_()
public UseAnim
e_(bcj arg0)
getUseAnimation(ItemStack arg0)
method_7853(class_1799 arg0)
getUseAction(ItemStack stack)
func_77661_b(ItemStack arg0)
public int
f_(bcj arg0)
getUseDuration(ItemStack arg0)
method_7881(class_1799 arg0)
getMaxUseTime(ItemStack stack)
func_77626_a(ItemStack arg0)
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)
func_77615_a(ItemStack arg0, World arg1, LivingEntity arg2, int arg3)
public Component
g(bcj arg0)
getName(ItemStack arg0)
method_7864(class_1799 arg0)
getName(ItemStack stack)
func_200295_i(ItemStack arg0)
public Rarity
h(bcj arg0)
getRarity(ItemStack arg0)
method_7862(class_1799 arg0)
getRarity(ItemStack stack)
func_77613_e(ItemStack arg0)
public boolean
g_(bcj arg0)
isEnchantable(ItemStack arg0)
method_7870(class_1799 arg0)
isEnchantable(ItemStack stack)
func_77616_k(ItemStack arg0)
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)
func_219968_a(World arg0, PlayerEntity arg1, RayTraceContext$FluidMode arg2)
public int
c()
getEnchantmentValue()
method_7837()
getEnchantability()
func_77619_b()
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)
func_150895_a(ItemGroup arg0, NonNullList<ItemStack> arg1)
protected boolean
a(bba arg0)
allowdedIn(CreativeModeTab arg0)
method_7877(class_1761 arg0)
isIn(ItemGroup group)
func_194125_a(ItemGroup arg0)
public final CreativeModeTab
p()
getItemCategory()
method_7859()
getGroup()
func_77640_w()
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)
func_82789_a(ItemStack arg0, ItemStack arg1)
public com.google.common.collect.Multimap<String, AttributeModifier>
a(ait arg0)
getDefaultAttributeModifiers(EquipmentSlot arg0)
method_7844(class_1304 arg0)
getModifiers(EquipmentSlot slot)
func_111205_h(EquipmentSlotType arg0)
public boolean
i(bcj arg0)
useOnRelease(ItemStack arg0)
method_7838(class_1799 arg0)
isUsedOnRelease(ItemStack stack)
func_219970_i(ItemStack arg0)
public boolean
a(zg<bce> arg0)
is(Tag<Item> arg0)
method_7855(class_3494<class_1792> arg0)
isIn(Tag<Item> tag)
func_206844_a(Tag<Item> arg0)
public boolean
r()
isEdible()
method_19263()
isFood()
func_219971_r()
isFood()
public FoodProperties
s()
getFoodProperties()
method_19264()
getFoodComponent()
func_219967_s()
getFoodInfo()
public ItemPropertyFunction
a(qv arg0)
getProperty(ResourceLocation arg0)
method_7868(class_2960 arg0)
getPropertyGetter(Identifier id)
func_185045_a(ResourceLocation arg0)
public boolean
f()
hasProperties()
method_7845()
hasPropertyGetters()
func_185040_i()
public Component
k()
getDescription()
method_7848()
getName()
func_200296_o()
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)
func_77624_a(ItemStack arg0, World arg1, List<ITextComponent> arg2, ITooltipFlag arg3)
public boolean
d_(bcj arg0)
isFoil(ItemStack arg0)
method_7886(class_1799 arg0)
hasEnchantmentGlint(ItemStack stack)
func_77636_d(ItemStack arg0)
public ItemStack
q()
getDefaultInstance()
method_7854()
getStackForRender()
func_190903_i()