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
-
Field Summary
Fields inherited from interface net.minecraft.dispenser.IDispenseItemBehavior
LOGGER, NOOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
-
Field Details
-
success
private boolean success
-
-
Constructor Details
-
OptionalDispenseBehavior
public OptionalDispenseBehavior()
-
-
Method Details
-
isSuccess
public boolean isSuccess() -
setSuccess
public void setSuccess(boolean p_239796_1_) -
playSound
- Overrides:
playSound
in classDefaultDispenseItemBehavior
-