Class PotatoPeelsItem

java.lang.Object
net.minecraft.item.Item
net.minecraft.item.PotatoPeelsItem
All Implemented Interfaces:
ItemConvertible, ToggleableFeature

public class PotatoPeelsItem extends Item
Mappings:
Namespace Name
official cve
intermediary net/minecraft/class_9535
named net/minecraft/item/PotatoPeelsItem
  • Field Details

    • PEELGRASS_COLOR

      public static final DyeColor PEELGRASS_COLOR
      Mappings:
      Namespace Name Mixin selector
      official a Lcve;a:Lcsy;
      intermediary field_50703 Lnet/minecraft/class_9535;field_50703:Lnet/minecraft/class_1767;
      named PEELGRASS_COLOR Lnet/minecraft/item/PotatoPeelsItem;PEELGRASS_COLOR:Lnet/minecraft/util/DyeColor;
    • color

      private final DyeColor color
      Mappings:
      Namespace Name Mixin selector
      official b Lcve;b:Lcsy;
      intermediary field_50704 Lnet/minecraft/class_9535;field_50704:Lnet/minecraft/class_1767;
      named color Lnet/minecraft/item/PotatoPeelsItem;color:Lnet/minecraft/util/DyeColor;
  • Constructor Details

    • PotatoPeelsItem

      public PotatoPeelsItem(Item.Settings settings, DyeColor color)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcve;<init>(Lcuc$a;Lcsy;)V
      intermediary <init> Lnet/minecraft/class_9535;<init>(Lnet/minecraft/class_1792$class_1793;Lnet/minecraft/class_1767;)V
      named <init> Lnet/minecraft/item/PotatoPeelsItem;<init>(Lnet/minecraft/item/Item$Settings;Lnet/minecraft/util/DyeColor;)V
  • Method Details

    • useOnBlock

      public ActionResult useOnBlock(ItemUsageContext context)
      Called when an item is used on a block.

      This method is called on both the logical client and logical server, so take caution when using this method. The logical side can be checked using context.getWorld().isClient().

      Overrides:
      useOnBlock in class Item
      Parameters:
      context - the usage context
      Returns:
      an action result that specifies if using the item on a block was successful.
      Mappings:
      Namespace Name Mixin selector
      official a Lcuc;a(Lcyf;)Lbqa;
      intermediary method_7884 Lnet/minecraft/class_1792;method_7884(Lnet/minecraft/class_1838;)Lnet/minecraft/class_1269;
      named useOnBlock Lnet/minecraft/item/Item;useOnBlock(Lnet/minecraft/item/ItemUsageContext;)Lnet/minecraft/util/ActionResult;