Package net.minecraft.world.entity
Interface Shearable
- All Superinterfaces:
IForgeShearable
- All Known Implementing Classes:
Bogged
,MushroomCow
,Sheep
,SnowGolem
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
isShearable
(ItemStack item, Level level, BlockPos pos) Checks if the object is currently shearable Example: Sheep return false when they have no woolboolean
Deprecated.void
shear
(SoundSource p_21749_) Methods inherited from interface net.minecraftforge.common.IForgeShearable
onSheared
-
Method Details
-
shear
-
readyForShearing
boolean readyForShearing() -
isShearable
Description copied from interface:IForgeShearable
Checks if the object is currently shearable Example: Sheep return false when they have no wool- Specified by:
isShearable
in interfaceIForgeShearable
- Parameters:
item
- The ItemStack that is being used, may be empty.level
- The current level.pos
- Block's position in level.- Returns:
- If this is shearable, and onSheared should be called.
-
IForgeShearable.isShearable(net.minecraft.world.item.ItemStack, net.minecraft.world.level.Level, net.minecraft.core.BlockPos)