Class CogwheelBlockItem.DiagonalCogHelper

java.lang.Object
com.simibubi.create.content.kinetics.simpleRelays.CogwheelBlockItem.DiagonalCogHelper
All Implemented Interfaces:
net.createmod.catnip.placement.IPlacementHelper
Enclosing class:
CogwheelBlockItem

public abstract static class CogwheelBlockItem.DiagonalCogHelper extends Object implements net.createmod.catnip.placement.IPlacementHelper
  • Field Summary

    Fields inherited from interface net.createmod.catnip.placement.IPlacementHelper

    ID
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.createmod.catnip.placement.PlacementOffset
    getOffset(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level world, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.BlockHitResult ray)
     
    Predicate<net.minecraft.world.level.block.state.BlockState>
     
    protected boolean
    hitOnShaft(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.BlockHitResult ray)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.createmod.catnip.placement.IPlacementHelper

    displayGhost, getItemPredicate, getOffset, matchesItem, matchesState, renderAt
  • Constructor Details

    • DiagonalCogHelper

      public DiagonalCogHelper()
  • Method Details

    • getStatePredicate

      public Predicate<net.minecraft.world.level.block.state.BlockState> getStatePredicate()
      Specified by:
      getStatePredicate in interface net.createmod.catnip.placement.IPlacementHelper
    • getOffset

      public net.createmod.catnip.placement.PlacementOffset getOffset(net.minecraft.world.entity.player.Player player, net.minecraft.world.level.Level world, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.BlockHitResult ray)
      Specified by:
      getOffset in interface net.createmod.catnip.placement.IPlacementHelper
    • hitOnShaft

      protected boolean hitOnShaft(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.phys.BlockHitResult ray)