Package net.minecraft.item
Class AppleItem
java.lang.Object
net.minecraft.item.Item
net.minecraft.item.FoodItem
net.minecraft.item.AppleItem
- Mappings:
Namespace Name official afeintermediary net/minecraft/class_1066named net/minecraft/item/AppleItem
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.item.Item
Item.ToolMaterialType -
Field Summary
Fields inherited from class net.minecraft.item.FoodItem
eatingTimeFields inherited from class net.minecraft.item.Item
ATTACK_DAMAGE_MODIFIER_UUID, ATTACK_SPEED_MODIFIER, damageable, handheld, maxCount, RANDOM, REGISTRY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voideat(ItemStack stack, World world, PlayerEntity player) Returns the rarity of the current Item.booleanhasEnchantmentGlint(ItemStack stack) Returns whether the current item has an enchantment glint.voidmethod_13648(Item item, ItemGroup itemGroup, DefaultedList<ItemStack> defaultedList) Methods inherited from class net.minecraft.item.FoodItem
alwaysEdible, getHungerPoints, getMaxUseTime, getSaturation, getUseAction, isCokkable, method_11371, method_13649, method_3367Methods inherited from class net.minecraft.item.Item
addProperty, appendTooltip, byRawId, canRepair, fromBlock, getBlockBreakingSpeed, getDefaultStack, getDisplayName, getEnchantability, getFromId, getItemGroup, getItemstackTranslatedName, getMaxCount, getMaxDamage, getMeta, getProperty, getRawId, getRecipeRemainder, getTranslationKey, getTranslationKey, hasProperties, hasSubTypes, inventoryTick, isDamageable, isEnchantable, isFood, isHandheld, isNetworkSynced, isUnbreakable, method_3346, method_3353, method_3356, method_3359, method_6326, onCraft, onEntityHit, onHit, postProcessNbt, registerBlockItem, setHandheld, setItemGroup, setMaxCount, setMaxDamage, setRecipeRemainder, setTranslationKey, setUnbreakable, setup, shouldRotate, shouldSyncNbtToClient, use
-
Constructor Details
-
AppleItem
public AppleItem(int hungerPoints, float saturation, boolean cookable) - Mappings:
Namespace Name Mixin selector official <init>Lafd;<init>(IFZ)Vintermediary <init>Lnet/minecraft/class_1065;<init>(IFZ)Vnamed <init>Lnet/minecraft/item/FoodItem;<init>(IFZ)V
-
-
Method Details
-
hasEnchantmentGlint
Returns whether the current item has an enchantment glint. Used by enchanted golden apples and enchanted items.- Overrides:
hasEnchantmentGlintin classItem- See Also:
-
net.minecraft.item.GoldenAppleItem
- Mappings:
Namespace Name Mixin selector official f_Lafh;f_(Lafj;)Zintermediary method_3374Lnet/minecraft/class_1069;method_3374(Lnet/minecraft/class_1071;)Znamed hasEnchantmentGlintLnet/minecraft/item/Item;hasEnchantmentGlint(Lnet/minecraft/item/ItemStack;)Z
-
getRarity
Returns the rarity of the current Item. Used by golden apples, enchanted items and potions.- Overrides:
getRarityin classItem- Parameters:
stack- The item in an ItemStack form- Returns:
- The rarity of the ItemStack
- See Also:
-
net.minecraft.item.GoldenAppleItemPotionItem
- Mappings:
Namespace Name Mixin selector official gLafh;g(Lafj;)Lafx;intermediary method_3377Lnet/minecraft/class_1069;method_3377(Lnet/minecraft/class_1071;)Lnet/minecraft/class_1081;named getRarityLnet/minecraft/item/Item;getRarity(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/util/Rarity;
-
eat
- Overrides:
eatin classFoodItem- Mappings:
Namespace Name Mixin selector official aLafd;a(Lafj;Lajs;Laay;)Vintermediary method_3336Lnet/minecraft/class_1065;method_3336(Lnet/minecraft/class_1071;Lnet/minecraft/class_1150;Lnet/minecraft/class_988;)Vnamed eatLnet/minecraft/item/FoodItem;eat(Lnet/minecraft/item/ItemStack;Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;)V
-
method_13648
@Environment(CLIENT) public void method_13648(Item item, ItemGroup itemGroup, DefaultedList<ItemStack> defaultedList) - Overrides:
method_13648in classItem- Mappings:
Namespace Name Mixin selector official aLafh;a(Lafh;Laej;Ldd;)Vintermediary method_13648Lnet/minecraft/class_1069;method_13648(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Lnet/minecraft/class_3114;)Vnamed method_13648Lnet/minecraft/item/Item;method_13648(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Lnet/minecraft/util/collection/DefaultedList;)V
-