Package net.minecraft.dispenser
Class BeehiveDispenseBehavior
- java.lang.Object
-
- net.minecraft.dispenser.DefaultDispenseItemBehavior
-
- net.minecraft.dispenser.OptionalDispenseBehavior
-
- net.minecraft.dispenser.BeehiveDispenseBehavior
-
- All Implemented Interfaces:
IDispenseItemBehavior
public class BeehiveDispenseBehavior extends OptionalDispenseBehavior
-
-
Field Summary
-
Fields inherited from interface net.minecraft.dispenser.IDispenseItemBehavior
LOGGER, NOOP
-
-
Constructor Summary
Constructors Constructor Description BeehiveDispenseBehavior()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ItemStack
execute(IBlockSource p_82487_1_, ItemStack p_82487_2_)
private static boolean
tryShearBeehive(ServerWorld p_239797_0_, BlockPos p_239797_1_)
private static boolean
tryShearLivingEntity(ServerWorld p_239798_0_, BlockPos p_239798_1_)
-
Methods inherited from class net.minecraft.dispenser.OptionalDispenseBehavior
isSuccess, playSound, setSuccess
-
Methods inherited from class net.minecraft.dispenser.DefaultDispenseItemBehavior
dispense, playAnimation, spawnItem
-
-
-
-
Method Detail
-
execute
protected ItemStack execute(IBlockSource p_82487_1_, ItemStack p_82487_2_)
- Overrides:
execute
in classDefaultDispenseItemBehavior
-
tryShearBeehive
private static boolean tryShearBeehive(ServerWorld p_239797_0_, BlockPos p_239797_1_)
-
tryShearLivingEntity
private static boolean tryShearLivingEntity(ServerWorld p_239798_0_, BlockPos p_239798_1_)
-
-