public interface IPartItem<P extends IPart>
@Override
public default EnumActionResult onItemUse(ItemStack is, EntityPlayer player, World world, BlockPos pos, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ)
{
return AEApi.instance().partHelper().placeBus( is, pos, side, player, hand, world );
}
| Modifier and Type | Method and Description |
|---|---|
P |
createPartFromItemStack(net.minecraft.item.ItemStack is)
create a new part INSTANCE, from the item stack.
|
@Nullable P createPartFromItemStack(net.minecraft.item.ItemStack is)
is - item