Package net.minecraft.block.dispenser
Class ShearsDispenserBehavior
java.lang.Object
net.minecraft.block.dispenser.ItemDispenserBehavior
net.minecraft.block.dispenser.FallibleItemDispenserBehavior
net.minecraft.block.dispenser.ShearsDispenserBehavior
- All Implemented Interfaces:
DispenserBehavior
public class ShearsDispenserBehavior extends FallibleItemDispenserBehavior
- Mappings:
Namespace Name official ha
intermediary net/minecraft/class_5168
named net/minecraft/block/dispenser/ShearsDispenserBehavior
-
Field Summary
Fields inherited from interface net.minecraft.block.dispenser.DispenserBehavior
NOOP
-
Constructor Summary
Constructors Constructor Description ShearsDispenserBehavior()
-
Method Summary
Modifier and Type Method Description protected ItemStack
dispenseSilently(BlockPointer pointer, ItemStack stack)
private static boolean
tryShearBlock(ServerWorld world, BlockPos pos)
private static boolean
tryShearEntity(ServerWorld world, BlockPos pos)
Methods inherited from class net.minecraft.block.dispenser.FallibleItemDispenserBehavior
isSuccess, playSound, setSuccess
Methods inherited from class net.minecraft.block.dispenser.ItemDispenserBehavior
dispense, spawnItem, spawnParticles
-
Constructor Details
-
ShearsDispenserBehavior
public ShearsDispenserBehavior()
-
-
Method Details
-
dispenseSilently
- Overrides:
dispenseSilently
in classItemDispenserBehavior
- Mappings:
Namespace Name Mixin selector official a
Lgx;a(Lfy;Lbnv;)Lbnv;
intermediary method_10135
Lnet/minecraft/class_2347;method_10135(Lnet/minecraft/class_2342;Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;
named dispenseSilently
Lnet/minecraft/block/dispenser/ItemDispenserBehavior;dispenseSilently(Lnet/minecraft/util/math/BlockPointer;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
-
tryShearBlock
- Mappings:
Namespace Name Mixin selector official a
Lha;a(Laav;Lfx;)Z
intermediary method_27162
Lnet/minecraft/class_5168;method_27162(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Z
named tryShearBlock
Lnet/minecraft/block/dispenser/ShearsDispenserBehavior;tryShearBlock(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Z
-
tryShearEntity
- Mappings:
Namespace Name Mixin selector official b
Lha;b(Laav;Lfx;)Z
intermediary method_27163
Lnet/minecraft/class_5168;method_27163(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Z
named tryShearEntity
Lnet/minecraft/block/dispenser/ShearsDispenserBehavior;tryShearEntity(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Z
-