Package net.minecraft.world.entity
Interface Shearable
- All Superinterfaces:
IForgeShearable
- All Known Implementing Classes:
Bogged,MushroomCow,Sheep,SnowGolem
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanisShearable(ItemStack item, Level level, BlockPos pos) Checks if the object is currently shearable Example: Sheep return false when they have no woolbooleanDeprecated.voidshear(SoundSource p_21749_) Methods inherited from interface net.minecraftforge.common.IForgeShearable
onSheared
-
Method Details
-
shear
-
readyForShearing
boolean readyForShearing() -
isShearable
Description copied from interface:IForgeShearableChecks if the object is currently shearable Example: Sheep return false when they have no wool- Specified by:
isShearablein 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)