Package net.minecraft.block.dispenser
Class ProjectileDispenserBehavior
java.lang.Object
net.minecraft.block.dispenser.ItemDispenserBehavior
net.minecraft.block.dispenser.ProjectileDispenserBehavior
- All Implemented Interfaces:
DispenserBehavior
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 kw
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ProjectileItem
private final ProjectileItem.Settings
Fields inherited from interface net.minecraft.block.dispenser.DispenserBehavior
LOGGER, NOOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondispenseSilently
(BlockPointer pointer, ItemStack stack) protected void
playSound
(BlockPointer pointer) Methods inherited from class net.minecraft.block.dispenser.ItemDispenserBehavior
decrementStackWithRemainder, dispense, spawnItem, spawnParticles
-
Field Details
-
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
Lkw;c:Lcuv;
-
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
Lkw;d:Lcuv$a;
-
-
Constructor Details
-
ProjectileDispenserBehavior
- 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>
Lkw;<init>(Lcty;)V
-
-
Method Details
-
dispenseSilently
- Overrides:
dispenseSilently
in classItemDispenserBehavior
- 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
Lkt;a(Lkr;Lcud;)Lcud;
-
playSound
- Overrides:
playSound
in classItemDispenserBehavior
- 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
Lkt;a(Lkr;)V
-