Package net.minecraft.core.dispenser
Class ShearsDispenseItemBehavior
java.lang.Object
net.minecraft.core.dispenser.DefaultDispenseItemBehavior
net.minecraft.core.dispenser.OptionalDispenseItemBehavior
net.minecraft.core.dispenser.ShearsDispenseItemBehavior
- All Implemented Interfaces:
DispenseItemBehavior
-
Field Summary
Fields inherited from interface net.minecraft.core.dispenser.DispenseItemBehavior
LOGGER, NOOP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ItemStack
execute
(BlockSource p_301806_, ItemStack p_123581_) private static boolean
tryShearBeehive
(ServerLevel p_123577_, BlockPos p_123578_) private static boolean
tryShearLivingEntity
(ServerLevel p_123583_, BlockPos p_123584_) Methods inherited from class net.minecraft.core.dispenser.OptionalDispenseItemBehavior
isSuccess, playSound, setSuccess
Methods inherited from class net.minecraft.core.dispenser.DefaultDispenseItemBehavior
consumeWithRemainder, dispense, playAnimation, spawnItem
-
Constructor Details
-
ShearsDispenseItemBehavior
public ShearsDispenseItemBehavior()
-
-
Method Details
-
execute
- Overrides:
execute
in classDefaultDispenseItemBehavior
-
tryShearBeehive
-
tryShearLivingEntity
-