接口 Shearable
- 所有超级接口:
IForgeShearable
- 所有已知实现类:
Bogged
,MushroomCow
,Sheep
,SnowGolem
-
方法概要
修饰符和类型方法说明default boolean
isShearable
(ItemStack item, Level level, BlockPos pos) Checks if the object is currently shearable Example: Sheep return false when they have no woolboolean
已过时。void
shear
(ServerLevel p_368224_, SoundSource p_21749_, ItemStack p_362173_) 从接口继承的方法 net.minecraftforge.common.IForgeShearable
onSheared
-
方法详细资料
-
shear
-
readyForShearing
boolean readyForShearing() -
isShearable
从接口复制的说明:IForgeShearable
Checks if the object is currently shearable Example: Sheep return false when they have no wool- 指定者:
isShearable
在接口中IForgeShearable
- 参数:
item
- The ItemStack that is being used, may be empty.level
- The current level.pos
- Block's position in level.- 返回:
- 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)