Class ItemDispenserBehavior

java.lang.Object
net.minecraft.block.dispenser.ItemDispenserBehavior
All Implemented Interfaces:
DispenserBehavior
Direct Known Subclasses:
BoatDispenserBehavior, FallibleItemDispenserBehavior, ProjectileDispenserBehavior

public class ItemDispenserBehavior extends Object implements DispenserBehavior
Mappings:
Namespace Name
named net/minecraft/block/dispenser/ItemDispenserBehavior
intermediary net/minecraft/class_2347
official ks
  • Constructor Details

    • ItemDispenserBehavior

      public ItemDispenserBehavior()
  • Method Details

    • dispense

      public final ItemStack dispense(BlockPointer pointer, ItemStack stack)
      Specified by:
      dispense in interface DispenserBehavior
      Mappings:
      Namespace Name Mixin selector
      named dispense Lnet/minecraft/block/dispenser/DispenserBehavior;dispense(Lnet/minecraft/util/math/BlockPointer;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
      intermediary dispense Lnet/minecraft/class_2357;dispense(Lnet/minecraft/class_2342;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;
      official dispense Lkt;dispense(Lkq;Lcuq;)Lcuq;
    • dispenseSilently

      protected ItemStack dispenseSilently(BlockPointer pointer, ItemStack stack)
      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 Lks;a(Lkq;Lcuq;)Lcuq;
    • spawnItem

      public static void spawnItem(World world, ItemStack stack, int speed, Direction side, Position pos)
      Mappings:
      Namespace Name Mixin selector
      named spawnItem Lnet/minecraft/block/dispenser/ItemDispenserBehavior;spawnItem(Lnet/minecraft/world/World;Lnet/minecraft/item/ItemStack;ILnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/Position;)V
      intermediary method_10134 Lnet/minecraft/class_2347;method_10134(Lnet/minecraft/class_1937;Lnet/minecraft/class_1799;ILnet/minecraft/class_2350;Lnet/minecraft/class_2374;)V
      official a Lks;a(Ldbz;Lcuq;ILje;Ljs;)V
    • playSound

      protected void playSound(BlockPointer pointer)
      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 Lks;a(Lkq;)V
    • spawnParticles

      protected void spawnParticles(BlockPointer pointer, Direction side)
      Mappings:
      Namespace Name Mixin selector
      named spawnParticles Lnet/minecraft/block/dispenser/ItemDispenserBehavior;spawnParticles(Lnet/minecraft/util/math/BlockPointer;Lnet/minecraft/util/math/Direction;)V
      intermediary method_10133 Lnet/minecraft/class_2347;method_10133(Lnet/minecraft/class_2342;Lnet/minecraft/class_2350;)V
      official a Lks;a(Lkq;Lje;)V