public enum NoSpaceInjectable extends java.lang.Enum<NoSpaceInjectable> implements IInjectable
Enum Constant and Description |
---|
INSTANCE |
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.
|
static NoSpaceInjectable |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NoSpaceInjectable[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NoSpaceInjectable INSTANCE
public static NoSpaceInjectable[] values()
for (NoSpaceInjectable c : NoSpaceInjectable.values()) System.out.println(c);
public static NoSpaceInjectable valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean canInjectItems(net.minecraft.util.EnumFacing from)
IInjectable
IInjectable.injectItem(ItemStack, boolean, EnumFacing, EnumDyeColor, double)
straight after.canInjectItems
in interface IInjectable
@Nonnull public 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)
IInjectable
injectItem
in interface IInjectable
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.