Interface IPneumaticWrenchable

All Known Implementing Classes:
AbstractAssemblyIOUnitBlock, AbstractAssemblyIOUnitBlock.Export, AbstractAssemblyIOUnitBlock.Import, AbstractCamouflageBlock, AbstractPNCBlockWithBoundingBlocks, AbstractPneumaticCraftBlock, AbstractPressureWallBlock, AdvancedAirCompressorBlock, AdvancedLiquidCompressorBlock, AerialInterfaceBlock, AirCannonBlock, AirCompressorBlock, AmadroneEntity, AphorismTileBlock, AssemblyControllerBlock, AssemblyDrillBlock, AssemblyLaserBlock, AssemblyPlatformBlock, ChargingStationBlock, CollectorDroneEntity, CompressedIronBlock, CreativeCompressedIronBlock, CreativeCompressorBlock, DisplayTableBlock, DisplayTableBlock.Shelf, DrillPipeBlock, DroneEntity, DroneInterfaceBlock, ElectrostaticCompressorBlock, ElevatorBaseBlock, ElevatorCallerBlock, ElevatorFrameBlock, EmptySpawnerBlock, EtchingTankBlock, FluidMixerBlock, FluidTankBlock, FluxCompressorBlock, GasLiftBlock, GuardDroneEntity, HarvestingDroneEntity, HeatPipeBlock, HeatSinkBlock, KeroseneLampBlock, LiquidCompressorBlock, LiquidHopperBlock, LogisticsDroneEntity, ManualCompressorBlock, OmnidirectionalHopperBlock, PneumaticDoorBaseBlock, PneumaticDoorBlock, PneumaticDynamoBlock, PressureChamberGlassBlock, PressureChamberInterfaceBlock, PressureChamberValveBlock, PressureChamberWallBlock, PressureTubeBlock, PressurizedSpawnerBlock, ProgrammableControllerBlock, ProgrammerBlock, RefineryControllerBlock, RefineryOutputBlock, ReinforcedChestBlock, SecurityStationBlock, SentryTurretBlock, SmartChestBlock, SolarCompressorBlock, SpawnerExtractorBlock, TagWorkbenchBlock, ThermalCompressorBlock, ThermalLaggingBlock, ThermopneumaticProcessingPlantBlock, TubeJunctionBlock, UniversalSensorBlock, UVLightBoxBlock, VacuumPumpBlock, VacuumTrapBlock, VortexTubeBlock, WallLampBlock

public interface IPneumaticWrenchable
Should be implemented by any block or entity that can be clicked by a Pneumatic Wrench. It uses almost the same rotate method as the Vanilla (Forge) method. However it uses energy to rotate (when rotateBlock() return true). Also, this method gets passed the player who did the rotation.
  • Method Summary

    Modifier and Type
    Method
    Description
    forBlock(net.minecraft.world.level.block.Block b)
     
    boolean
    onWrenched(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side, net.minecraft.world.InteractionHand hand)
     
  • Method Details

    • onWrenched

      boolean onWrenched(net.minecraft.world.level.Level world, net.minecraft.world.entity.player.Player player, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction side, net.minecraft.world.InteractionHand hand)
    • forBlock

      static IPneumaticWrenchable forBlock(net.minecraft.world.level.block.Block b)