Package net.minecraft.core.dispenser
Class OptionalDispenseItemBehavior
java.lang.Object
net.minecraft.core.dispenser.DefaultDispenseItemBehavior
net.minecraft.core.dispenser.OptionalDispenseItemBehavior
- All Implemented Interfaces:
DispenseItemBehavior
- Direct Known Subclasses:
ShearsDispenseItemBehavior
,ShulkerBoxDispenseBehavior
-
Field Summary
Fields inherited from interface net.minecraft.core.dispenser.DispenseItemBehavior
LOGGER, NOOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected void
playSound(BlockSource p_123572_)
void
setSuccess(boolean p_123574_)
Methods inherited from class net.minecraft.core.dispenser.DefaultDispenseItemBehavior
dispense, execute, playAnimation, spawnItem
-
Field Details
-
success
private boolean success
-
-
Constructor Details
-
OptionalDispenseItemBehavior
public OptionalDispenseItemBehavior()
-
-
Method Details
-
isSuccess
public boolean isSuccess() -
setSuccess
public void setSuccess(boolean p_123574_) -
playSound
- Overrides:
playSound
in classDefaultDispenseItemBehavior
-