Interface IWrenchableWithBracket

All Superinterfaces:
IWrenchable
All Known Implementing Classes:
AbstractShaftBlock, AxisPipeBlock, CogWheelBlock, FluidPipeBlock, GlassFluidPipeBlock, ShaftBlock

public interface IWrenchableWithBracket extends IWrenchable
  • Method Summary

    Modifier and Type
    Method
    Description
    default net.minecraft.world.InteractionResult
    onWrenched(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.UseOnContext context)
     
    Optional<net.minecraft.world.item.ItemStack>
    removeBracket(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, boolean inOnReplacedContext)
     
    default boolean
    tryRemoveBracket(net.minecraft.world.item.context.UseOnContext context)
     

    Methods inherited from interface com.simibubi.create.content.contraptions.wrench.IWrenchable

    getRotatedBlockState, onSneakWrenched, playRemoveSound, playRotateSound, updateAfterWrenched
  • Method Details

    • removeBracket

      Optional<net.minecraft.world.item.ItemStack> removeBracket(net.minecraft.world.level.BlockGetter world, net.minecraft.core.BlockPos pos, boolean inOnReplacedContext)
    • onWrenched

      default net.minecraft.world.InteractionResult onWrenched(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.item.context.UseOnContext context)
      Specified by:
      onWrenched in interface IWrenchable
    • tryRemoveBracket

      default boolean tryRemoveBracket(net.minecraft.world.item.context.UseOnContext context)