public interface IInjectable
Modifier and Type | Method and Description |
---|---|
boolean |
canInjectItems(net.minecraft.util.EnumFacing from)
Tests to see if this pipe can accept items from the given direction.
|
net.minecraft.item.ItemStack |
injectItem(net.minecraft.item.ItemStack stack,
boolean doAdd,
net.minecraft.util.EnumFacing from,
net.minecraft.item.EnumDyeColor color,
double speed)
Offers an ItemStack for addition to the pipe.
|
boolean canInjectItems(net.minecraft.util.EnumFacing from)
injectItem(ItemStack, boolean, EnumFacing, EnumDyeColor, double)
straight after.@Nonnull net.minecraft.item.ItemStack injectItem(@Nonnull net.minecraft.item.ItemStack stack, boolean doAdd, net.minecraft.util.EnumFacing from, net.minecraft.item.EnumDyeColor color, double speed)
stack
- ItemStack offered for addition. Do not manipulate this!doAdd
- If false no actual addition should take place. Implementors should simulate.from
- Orientation the ItemStack is offered from.color
- The color of the item to be added to the pipe, or null for no color.speed
- The speed of the item to be added (in blocks per tick) or <=0
if a default should be used.