Interface IDirectionalOnBelt

All Known Implementing Classes:
DoughBallItem

public interface IDirectionalOnBelt
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    launch(DirectionalTransportedItemStack stack, net.minecraft.core.Direction launchDirection)
    This function is enacted on Items just before they are thrown by a Weighted Ejector.
    makeDirectionalTransportedItemStack(com.simibubi.create.content.kinetics.belt.transport.TransportedItemStack transportedItemStack)
    When Items are first put on Depots, Belts, etc.
    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.
  • Method Details

    • makeDirectionalTransportedItemStack

      default DirectionalTransportedItemStack makeDirectionalTransportedItemStack(com.simibubi.create.content.kinetics.belt.transport.TransportedItemStack transportedItemStack)
      When Items are first put on Depots, Belts, etc. they are not directional. This function should take the (non-directional) TransportedItemStack generated and turn it into a directional one. That DirectionalTransportedItemStack can optionally override
      Parameters:
      transportedItemStack -
    • 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
    • launch

      default void launch(DirectionalTransportedItemStack stack, net.minecraft.core.Direction launchDirection)
      This function is enacted on Items just before they are thrown by a Weighted Ejector.
      Parameters:
      stack -
      launchDirection -