public enum StripesHandlerShears extends java.lang.Enum<StripesHandlerShears> implements IStripesHandlerItem
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
boolean |
handle(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumFacing direction,
net.minecraft.item.ItemStack stack,
net.minecraft.entity.player.EntityPlayer player,
IStripesActivator activator)
Called to handle the given
ItemStack within the world. |
static StripesHandlerShears |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static StripesHandlerShears[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StripesHandlerShears INSTANCE
public static StripesHandlerShears[] values()
for (StripesHandlerShears c : StripesHandlerShears.values()) System.out.println(c);
public static StripesHandlerShears 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 handle(net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, net.minecraft.util.EnumFacing direction, net.minecraft.item.ItemStack stack, net.minecraft.entity.player.EntityPlayer player, IStripesActivator activator)
IStripesHandlerItem
ItemStack
within the world. Note that the player's inventory will be empty,
except that the target stack will be set into its EnumHand.MAIN_HAND
. Any items left in the players
inventory will be returned back through the activator with
IStripesActivator.sendItem(ItemStack, EnumFacing)
handle
in interface IStripesHandlerItem
stack
- The ItemStack
being used