Class CornerShaftBlockItem.PlacementHelper

java.lang.Object
com.simibubi.create.foundation.placement.PoleHelper<net.minecraft.core.Direction.Axis>
petrolpark.mc.petrolsparts.content.kinetics.cornerShaft.CornerShaftBlockItem.PlacementHelper
All Implemented Interfaces:
net.createmod.catnip.placement.IPlacementHelper
Enclosing class:
CornerShaftBlockItem

public class CornerShaftBlockItem.PlacementHelper extends com.simibubi.create.foundation.placement.PoleHelper<net.minecraft.core.Direction.Axis>
  • Field Summary

    Fields inherited from class com.simibubi.create.foundation.placement.PoleHelper

    axisFunction, property, statePredicate

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

    ID
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Predicate<net.minecraft.world.item.ItemStack>
     
    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)
     
    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, net.minecraft.world.item.ItemStack heldItem)
     
    Predicate<net.minecraft.world.level.block.state.BlockState>
     

    Methods inherited from class com.simibubi.create.foundation.placement.PoleHelper

    attachedPoles, matchesAxis

    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, matchesItem, matchesState, renderAt
  • Constructor Details

    • PlacementHelper

      public PlacementHelper()
  • Method Details

    • getItemPredicate

      public Predicate<net.minecraft.world.item.ItemStack> getItemPredicate()
    • getStatePredicate

      public Predicate<net.minecraft.world.level.block.state.BlockState> getStatePredicate()
      Specified by:
      getStatePredicate in interface net.createmod.catnip.placement.IPlacementHelper
      Overrides:
      getStatePredicate in class com.simibubi.create.foundation.placement.PoleHelper<net.minecraft.core.Direction.Axis>
    • 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
      Overrides:
      getOffset in class com.simibubi.create.foundation.placement.PoleHelper<net.minecraft.core.Direction.Axis>
    • 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, net.minecraft.world.item.ItemStack heldItem)