Class ProjectileDispenserBehavior

java.lang.Object
net.minecraft.block.dispenser.ItemDispenserBehavior
net.minecraft.block.dispenser.ProjectileDispenserBehavior
All Implemented Interfaces:
DispenserBehavior

public class ProjectileDispenserBehavior extends ItemDispenserBehavior
A dispenser behavior that spawns a projectile with velocity in front of the dispenser.
Mappings:
Namespace Name
named net/minecraft/block/dispenser/ProjectileDispenserBehavior
intermediary net/minecraft/class_2965
official kz
  • Field Details

    • projectile

      private final ProjectileItem projectile
      Mappings:
      Namespace Name Mixin selector
      named projectile Lnet/minecraft/block/dispenser/ProjectileDispenserBehavior;projectile:Lnet/minecraft/item/ProjectileItem;
      intermediary field_50243 Lnet/minecraft/class_2965;field_50243:Lnet/minecraft/class_9463;
      official c Lkz;c:Lcvm;
    • projectileSettings

      private final ProjectileItem.Settings projectileSettings
      Mappings:
      Namespace Name Mixin selector
      named projectileSettings Lnet/minecraft/block/dispenser/ProjectileDispenserBehavior;projectileSettings:Lnet/minecraft/item/ProjectileItem$Settings;
      intermediary field_50244 Lnet/minecraft/class_2965;field_50244:Lnet/minecraft/class_9463$class_9464;
      official d Lkz;d:Lcvm$a;
  • Constructor Details

    • ProjectileDispenserBehavior

      public ProjectileDispenserBehavior(Item item)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/block/dispenser/ProjectileDispenserBehavior;<init>(Lnet/minecraft/item/Item;)V
      intermediary <init> Lnet/minecraft/class_2965;<init>(Lnet/minecraft/class_1792;)V
      official <init> Lkz;<init>(Lcul;)V
  • Method Details

    • dispenseSilently

      public ItemStack dispenseSilently(BlockPointer pointer, ItemStack stack)
      Overrides:
      dispenseSilently in class ItemDispenserBehavior
      Mappings:
      Namespace Name Mixin selector
      named dispenseSilently Lnet/minecraft/block/dispenser/ItemDispenserBehavior;dispenseSilently(Lnet/minecraft/util/math/BlockPointer;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
      intermediary method_10135 Lnet/minecraft/class_2347;method_10135(Lnet/minecraft/class_2342;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;
      official a Lkw;a(Lku;Lcuq;)Lcuq;
    • playSound

      protected void playSound(BlockPointer pointer)
      Overrides:
      playSound in class ItemDispenserBehavior
      Mappings:
      Namespace Name Mixin selector
      named playSound Lnet/minecraft/block/dispenser/ItemDispenserBehavior;playSound(Lnet/minecraft/util/math/BlockPointer;)V
      intermediary method_10136 Lnet/minecraft/class_2347;method_10136(Lnet/minecraft/class_2342;)V
      official a Lkw;a(Lku;)V