Package me.desht.pneumaticcraft.api.item
Interface ILaunchBehaviour
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.entity.EntitygetEntityToLaunch(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.player.Player player) Used by the Air Cannon and the Pneumatic Chestplate item launcher (Dispenser upgrade).
-
Method Details
-
getEntityToLaunch
net.minecraft.world.entity.Entity getEntityToLaunch(net.minecraft.world.item.ItemStack stack, net.minecraft.world.entity.player.Player player) Used by the Air Cannon and the Pneumatic Chestplate item launcher (Dispenser upgrade). Given an item being launched, and the player (possibly a fake player) doing the launching, get the entity to be launched. Note this is only called for dispenser-like behaviour (non-dispenser behaviour is simply to make an item entity from the item).- Parameters:
stack- the item being launchedplayer- the player doing the launching- Returns:
- the entity to be launched
-