Interface ItemBlockCable.IUseAction
- Enclosing class:
ItemBlockCable
public static interface ItemBlockCable.IUseAction
-
Method Summary
Modifier and TypeMethodDescriptionboolean
attempItemUseTarget
(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, BlockCable blockCable) Attempt to use the given item.boolean
canPlaceAt
(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) If the block can be placed at the given position.
-
Method Details
-
attempItemUseTarget
boolean attempItemUseTarget(net.minecraft.world.item.ItemStack itemStack, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, BlockCable blockCable) Attempt to use the given item.- Parameters:
itemStack
- The item stack that is being used.world
- The world.pos
- The position.blockCable
- The cable block instance.- Returns:
- If the use action was applied.
-
canPlaceAt
boolean canPlaceAt(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos) If the block can be placed at the given position.- Parameters:
world
- The world.pos
- The position.- Returns:
- If the block can be placed.
-