All Superinterfaces:
ISpecialBeltItem<STACK>
All Known Implementing Classes:
DoughItem

public interface IDirectionalBeltItem<STACK extends DirectionalTransportedItemStack> extends ISpecialBeltItem<STACK>
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    onLaunchedByWeightedEjector(STACK stack, net.minecraft.core.Direction launchDirection)
    This function is enacted on Items just before they are thrown by a Weighted Ejector.
    default net.minecraft.world.level.block.Rotation
    rotationForPlacement(net.minecraft.world.item.ItemStack stack)
    Get the rotation an Item Stack should have when placed on a Belt, Depot, etc.

    Methods inherited from interface petrolpark.mc.library.compat.create.core.world.item.transported.ISpecialBeltItem

    makeTransportedItemStack
  • Method Details

    • rotationForPlacement

      @Nullable default net.minecraft.world.level.block.Rotation rotationForPlacement(net.minecraft.world.item.ItemStack stack)
      Get the rotation an Item Stack should have when placed on a Belt, Depot, etc.
      Parameters:
      stack - This may be mutated in this method
      Returns:
      A rotation from north. May be null, in which case it will be ignored
    • onLaunchedByWeightedEjector

      default void onLaunchedByWeightedEjector(STACK stack, net.minecraft.core.Direction launchDirection)
      This function is enacted on Items just before they are thrown by a Weighted Ejector.
      Specified by:
      onLaunchedByWeightedEjector in interface ISpecialBeltItem<STACK extends DirectionalTransportedItemStack>
      Parameters:
      stack -
      launchDirection -