Interface IDirectionalBeltItem<STACK extends DirectionalTransportedItemStack>
- All Superinterfaces:
ISpecialBeltItem<STACK>
- All Known Implementing Classes:
DoughItem
public interface IDirectionalBeltItem<STACK extends DirectionalTransportedItemStack>
extends ISpecialBeltItem<STACK>
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonLaunchedByWeightedEjector(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.RotationrotationForPlacement(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
This function is enacted on Items just before they are thrown by a Weighted Ejector.- Specified by:
onLaunchedByWeightedEjectorin interfaceISpecialBeltItem<STACK extends DirectionalTransportedItemStack>- Parameters:
stack-launchDirection-
-