Package petrolpark.mc.petrolsparts.mixin
Class PoleHelperMixin<T extends Comparable<T>>
java.lang.Object
petrolpark.mc.petrolsparts.mixin.PoleHelperMixin<T>
- All Implemented Interfaces:
net.createmod.catnip.placement.IPlacementHelper
public abstract class PoleHelperMixin<T extends Comparable<T>>
extends Object
implements net.createmod.catnip.placement.IPlacementHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Function<net.minecraft.world.level.block.state.BlockState, net.minecraft.core.Direction.Axis> protected net.minecraft.world.level.block.state.properties.Property<T> Fields inherited from interface net.createmod.catnip.placement.IPlacementHelper
ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpetrolsParts$placeShaftsThroughBlocks(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, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<net.createmod.catnip.placement.PlacementOffset> cir, List<net.minecraft.core.Direction> directions, Iterator<net.minecraft.core.Direction> iterator, net.minecraft.core.Direction dir, int range, int poles, net.minecraft.core.BlockPos newPos, net.minecraft.world.level.block.state.BlockState newState) net.minecraft.world.level.block.state.BlockStatepetrolsParts$useAxisFunction(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.state.BlockState bState, com.llamalad7.mixinextras.injector.wrapoperation.Operation<net.minecraft.world.level.block.state.BlockState> original) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.createmod.catnip.placement.IPlacementHelper
displayGhost, getItemPredicate, getOffset, getOffset, getStatePredicate, matchesItem, matchesState, renderAt
-
Field Details
-
property
protected net.minecraft.world.level.block.state.properties.Property<T extends Comparable<T>> property -
axisFunction
protected Function<net.minecraft.world.level.block.state.BlockState,net.minecraft.core.Direction.Axis> axisFunction
-
-
Constructor Details
-
PoleHelperMixin
public PoleHelperMixin()
-
-
Method Details
-
petrolsParts$placeShaftsThroughBlocks
public void petrolsParts$placeShaftsThroughBlocks(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, org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable<net.createmod.catnip.placement.PlacementOffset> cir, List<net.minecraft.core.Direction> directions, Iterator<net.minecraft.core.Direction> iterator, net.minecraft.core.Direction dir, int range, int poles, net.minecraft.core.BlockPos newPos, net.minecraft.world.level.block.state.BlockState newState) -
petrolsParts$useAxisFunction
public net.minecraft.world.level.block.state.BlockState petrolsParts$useAxisFunction(net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.block.state.BlockState bState, com.llamalad7.mixinextras.injector.wrapoperation.Operation<net.minecraft.world.level.block.state.BlockState> original)
-