Package net.minecraft.core.dispenser
Class AbstractProjectileDispenseBehavior
java.lang.Object
net.minecraft.core.dispenser.DefaultDispenseItemBehavior
net.minecraft.core.dispenser.AbstractProjectileDispenseBehavior
- All Implemented Interfaces:
DispenseItemBehavior
-
Field Summary
Fields inherited from interface net.minecraft.core.dispenser.DispenseItemBehavior
LOGGER, NOOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(BlockSource p_302427_, ItemStack p_123367_) protected float
getPower()
protected abstract Projectile
getProjectile
(Level p_123360_, Position p_123361_, ItemStack p_123362_) protected float
protected void
playSound
(BlockSource p_302441_) Methods inherited from class net.minecraft.core.dispenser.DefaultDispenseItemBehavior
dispense, playAnimation, spawnItem
-
Constructor Details
-
AbstractProjectileDispenseBehavior
public AbstractProjectileDispenseBehavior()
-
-
Method Details
-
execute
- Overrides:
execute
in classDefaultDispenseItemBehavior
-
playSound
- Overrides:
playSound
in classDefaultDispenseItemBehavior
-
getProjectile
protected abstract Projectile getProjectile(Level p_123360_, Position p_123361_, ItemStack p_123362_) -
getUncertainty
protected float getUncertainty() -
getPower
protected float getPower()
-