Package net.minecraft.dispenser
Class OptionalDispenseBehavior
- java.lang.Object
-
- net.minecraft.dispenser.DefaultDispenseItemBehavior
-
- net.minecraft.dispenser.OptionalDispenseBehavior
-
- All Implemented Interfaces:
IDispenseItemBehavior
- Direct Known Subclasses:
BeehiveDispenseBehavior
,ShulkerBoxDispenseBehavior
public abstract class OptionalDispenseBehavior extends DefaultDispenseItemBehavior
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
success
-
Fields inherited from interface net.minecraft.dispenser.IDispenseItemBehavior
LOGGER, NOOP
-
-
Constructor Summary
Constructors Constructor Description OptionalDispenseBehavior()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSuccess()
protected void
playSound(IBlockSource p_82485_1_)
void
setSuccess(boolean p_239796_1_)
-
Methods inherited from class net.minecraft.dispenser.DefaultDispenseItemBehavior
dispense, execute, playAnimation, spawnItem
-
-
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
-
setSuccess
public void setSuccess(boolean p_239796_1_)
-
playSound
protected void playSound(IBlockSource p_82485_1_)
- Overrides:
playSound
in classDefaultDispenseItemBehavior
-
-